Shell/Bash: undo local commit Example
Shell/Bash Example: This is the "undo local commit" Example. compiled from many sources on the internet by SimpleTutorials.org
git undo commit
# Uncommit the changes git reset --soft HEAD~1 # Completely delete the changes git reset --hard HEAD~1
roll back last commit in git
git reset --soft HEAD~1
undo local commit
$ git reset --soft HEAD~1
revert local commit
$ git reset --hard HEAD~1
undo last commit git
$ git reset --soft HEAD~1
how to undo commit
git reset# Exemple git reset 5310517
* Summary: This "undo local commit" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!