Answers for "how to delete last pushed commit in git azure"

1

git delete last commit after push

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

remove commit not pushed

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language