Git : Revert back to Previous Revision

Revert back to Previous version in git


  • Get the REVISIONNUMBER ( Revision number ) of the previous Revision which you want the files to revert back to.

Here is how you could revert back to previous Revision in git

  1. git reset --hard REVISIONNUMBER
  2. git push --force


This will delete all yours commits made between the REVISIONNUMBER and the CURRENT Revisionnumber

Leave a Reply

Your email address will not be published. Required fields are marked *