# Go back to the selected commit on your local environment # Don't forget the . in the end git checkout <commit-id> . # Add this version to the staging area and push to remote git add . git commit -m "Reverting to <commit-id>" git push