Answers for "undo last pushed commit without losing changes"

3

cancel a commit not pushed

git reset --soft HEAD~
Posted by: Guest on November-03-2020
0

how to undo a commit sent that was pushed and keep local changes

git reset <previous label or sha1>
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language