Answers for "totasgit how to delete commit before push but keep changes"

16

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
2

how to remove all commit in git before push

run this command
git reset --soft HEAD~
Posted by: Guest on February-15-2022

Code answers related to "totasgit how to delete commit before push but keep changes"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language