Answers for "undo git"

42

undo git

# KEEP CHANGES
git reset --soft HEAD~1

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

git reflog reset

git reset HEAD@{1}
Posted by: Guest on August-11-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language