Git : Revert back to Previous Revision

0
17

Revert back to Previous version in git

Required

  • 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

Caution

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*