Answers for "git cancel unpushed commits"

16

git remove unpushed 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

get unpushed commits

git log origin/master..HEAD
Posted by: Guest on February-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language