- Git: Undo last commit
The last commit can be undone by a combination of git reset --soft HEAD~1 and git reset HEAD .. A more destructive approach is to use git reset --hard HEAD~1.
Seeker of knowledge, hacker of things. Lover of cats. Owner of unmatched enthusiasm.
Copyright © 2019 Hage Yaapa