Skip to content

Git reset

Completely stuffed up your code and pushed to main anyway? Easy fix

Terminal window
git reset --hard <commit sha>
git push -f