Backbrain   Archive

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