Answers for "undo commit and push git"

1

git delete last commit after push

git reset --hard HEAD~1
git push -f <remote> <branch>
Posted by: Guest on April-21-2021
1

undo last commit pushed

git reset # commitId
# Exemple
git reset 5310517
Posted by: Guest on October-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language