How to uncommit my last commit in git

Posted by richard on Stack Overflow See other posts from Stack Overflow or by richard
Published on 2010-05-16T22:26:31Z Indexed on 2010/05/16 22:30 UTC
Read the original article Hit count: 154

Filed under:

Hi,

How can I uncommit my last commit in git? I have googled it.

Is it

git reset --hard HEAD

or

git reset --head HEAD^

Thank you.

© Stack Overflow or respective owner

Related posts about git