Answers for "git remove commit content"

16

git remove commit

# 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

delete everythng after a certain commit

git reset HEAD@{index}
Posted by: Guest on September-28-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language