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

Revision #1
Created 2022-08-03 04:14:21 UTC by tinfoil-hat
Updated 2022-08-03 04:16:48 UTC by tinfoil-hat