39 ms·
git reset HEAD^ Add --hard, --mixed, --soft for different effects. This command itself can be undone by going through git reflog and finding the appropriate co
by herge 12y ago
git reset HEAD^
Add --hard, --mixed, --soft for different effects. This command itself can be undone by going through git reflog and finding the appropriate commit.
- Crito 12y agoTo add to this, git-reset enables much more than simply 'undoing' the last commit, so it could not be adequately replaced with `git commit --undo`.