Git revert to previous commit
June 19, 2018 | 1 Minute Read
Git revert to previous commit
After several commits to your git repository, if you would like to go back to a previous stable commit–
1. Check the log to find the desired commit
git log
2. Checkout desired commit (hash) – dont forget .
git checkout 39808f99f0b44654717e9f1a46814816111cb .
3/4. Make changes if you want, and commit, then push
git commit -m “particles removed”
git push
Terminal—