Revert commits
revert to last commit:
git reset --soft HEAD~1
revert to commit X and don’t forget the final ‘ .’
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
No Comments