This is how to go back to a previous commit!
Step by step
- Go to github, check commit id.
- Checkout in the local git (" git checkout id-commit . "). DON'T FORGET DOT IN FINAL
- Commit your update (" git add . ") and then ( git commit -m "back to a previous commit" ).
- Push to github server (git push).