# Assuming it's 'master' that you want to rollback git checkout master # To be in master git reset --hard master [SHA] # With [SHA] being the SHA of the new place to put master git push -f origin master # Update origin