Answers for "git returning a removed commit"

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

how to see deleted commit in git

git help reflog
Posted by: Guest on February-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language