Git Reset Last Commit

nobody pulled yet

git reset --hard <commit-hash-one-before-the-bad-commit>
git push --force

someone already pulled

git revert <bad-commit-hash>
git push

Leave a Reply

Your email address will not be published. Required fields are marked *