SRENG Khorn
SRENG Khorn

Reputation: 1221

How can I undo last local (not pushed) commit using git-plus?

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

Answers (1)

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

Related Questions