How to uncommit my last commit in Git [duplicate]
This question already has an answer here: How do I undo the most recent local commits in Git? 80 answers How can I uncommit my last commit in git? Is it git reset --hard HEAD or git reset --hard HEAD^ ? Cascabel If you aren't totally sure what you mean by "uncommit" and don't know if you want to use git reset , please see " Revert to a previous Git commit ". If you're trying to understand git reset better, please see " Can you explain what "git reset" does in plain English? ". If you know you want to use git reset , it still depends what you mean by "uncommit". If all you want to do is undo