Shell/Bash: how to uncommit my last commit in git Example
Shell/Bash Example: This is the "how to uncommit my last commit in git" Example. compiled from many sources on the internet by SimpleTutorials.org
how to uncommit my last commit in git
git reset --soft HEAD^ git reset HEAD^ //And if you actually want to completely undo it, throwing away all uncommitted changes, resetting everything to the previous commit (as the original question asked): git reset --hard HEAD^
* Summary: This "how to uncommit my last commit in git" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!