Answers for "accidentally push to main branch git how to remove last commit"

1

git delete last commit after push

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

Code answers related to "accidentally push to main branch git how to remove last commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language