from here
Whoops, didn't want to commit that...
Leave tracked files untouched (use --hard
to remove all tracked changes):
git reset --soft HEAD~1
If you already pushed, add a new commit that reverts the last commit:
git revert HEAD
from here
Whoops, didn't want to commit that...
Leave tracked files untouched (use --hard
to remove all tracked changes):
git reset --soft HEAD~1
If you already pushed, add a new commit that reverts the last commit:
git revert HEAD