How To Go Back To A Previous Commit

This is how to go back to a previous commit! Step…

Admin, January 16, 2023
How To Go Back To A Previous Commit
Image by rawpixel.com on Freepik

This is how to go back to a previous commit!

Step by step

  1. Go to github, check commit id.
  2. Checkout in the local git (" git checkout id-commit . "). DON'T FORGET DOT IN FINAL
  3. Commit your update (" git add . ") and then ( git commit -m "back to a previous commit" ).
  4. Push to github server (git push).

Read More


Profile picture

Written by Heri Setiawan who lives and works in Jakarta building useful things. You should follow them on Twitter