Git commands


Git commands

Undoing a Git commit

This can be easily accomplished using git checkout HEAD~1. This returns the head state to the previous version.

A detached HEAD state

A detached head state can be fixed by returning to the master branch using git checkout master.

Home

Positives, negatives, and your boss