Reputation: 1221
As my question above I want to know how to undo last local (not pushed) commit using git-plus package in Atom text editor. How can I undo last local commit?
Upvotes: 0
Views: 580
Reputation: 393
Apparently you can not do that with git-plus. But with this simple command :
git reset --hard HEAD^
You can undo the last commit.
Pay attention it is a hard reset, so you will loose any pending changes. You can stash
them before.
Upvotes: 2