Answers for "delete a pushed commit"

1

cancel a commit not pushed

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

delete a pushed commit

# delete the last commit
$git reset –hard HEAD~
Posted by: Guest on October-20-2020
0

remove commit not pushed

git reset --hard origin/main
Posted by: Guest on June-04-2021
0

delete a pushed commit

$git log --pretty=oneline --abbrev-commit
Posted by: Guest on October-20-2020

Code answers related to "delete a pushed commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language