Revert Files

Sometimes you may want to revert just ONE or TWO files in a repository to an earlier version. This can happen as explained in the following example:

Say you are writing a story and you wrote one version of it, saved the file and pushed it to the remote Git Host. Then you went to sleep. Next day you woke up and again worked on the story. And again you saved and pushed. After sometime, something inside you told me that the work you had done yesterday was better; and you want that version back. What to do?

Simple. Just ask Git Winch to send the commit history to you. Then select the ID: of the commit you were interested in. Go to the Files listing in the work tab, select the short story file. Right-click and from the menu select Revert selected files to another version and there you go! You now have the previous day's version.

If you wanted the entire contents of the repository to return back to the state it was for the commit ID you selected, then there is another method, explained here.


Learn the concepts | Table of Contents