Answers for "undo commit git before push"

5

git remove commit before push

# Removes latest commit from the stash, KEEPS changes
git reset --soft HEAD~

# Removes latest commit from the stash, DELETES changes
git reset --hard HEAD~
Posted by: Guest on November-27-2020
0

undo commit git before push

git reset HEAD~
Posted by: Guest on February-02-2021
1

undo git commit after push

git reset <hash> # Run this then merge, commit, and push
Posted by: Guest on February-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language