How can I uncommit my last commit in git?

Is it

git reset --hard HEAD

or

git reset --hard HEAD^

?

8

Leave a Reply

Your email address will not be published. Required fields are marked *