Answers for "what happens if you undo last commit"

69

undo commit

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Posted by: Guest on April-07-2020
1

revert last commit

git reset HEAD~
Posted by: Guest on August-13-2020

Code answers related to "what happens if you undo last commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language