Shell/Bash: cancel a commit not pushed Example


Shell/Bash Example: This is the "cancel a commit not pushed" Example. compiled from many sources on the internet by

cancel a commit not pushed

git reset --soft HEAD~

delete a pushed commit

# delete the last commit
$git reset –hard HEAD~

* Summary: This "cancel a commit not pushed" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!