Answers for "how remove commit from my local"

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
5

git delete local commit

git reset --hard origin/<branch_name>
Posted by: Guest on June-19-2020

Code answers related to "how remove commit from my local"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language