This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
revertversion [2025/06/03 19:07] – created admin | revertversion [2025/06/19 08:00] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Revert to an earlier | + | ======Revert to an another |
- | Sometimes, it may be important to return back to an earlier | + | Sometimes, it may be important to return back to an another |
- | Here, you should select any text of this kind, shown below | + | To do this, you need to first right click on the repository folder in the main work area (in the left side) and select //Commit History// This will take you to the //Log// page and there you can read all the various //pushes// that were seen for that repository. |
+ | |||
+ | Each push would have an ID: statement. That is what we need to use. | ||
+ | |||
+ | Inside the Log file, you should select any text of this kind, shown below. Basically, select the entire ID for that particular version you want //Git Winch// to revert to. | ||
//ID: 3feaefw2asdfswerfwerwerwerwe// | //ID: 3feaefw2asdfswerfwerwerwerwe// | ||
In the above example, make sure you select the entire text using the mouse right from the starting " | In the above example, make sure you select the entire text using the mouse right from the starting " | ||
+ | |||
+ | **Important**\\ | ||
+ | Make sure you click the button else it would again become invisible if you happened to unselect the earlier selected ID information. | ||
+ | |||
+ | **NOTES**\\ | ||
+ | When you use this command, please note that the ENTIRE contents of the repository folder would shift to the state it was during the commit you had selected. This affects ONLY your computer and will NOT affect the files kept at the Git host service. | ||
+ | |||
+ | Instead of using this command, you can just select the files you want to work on and revert just that. Explained [[revertfiles? | ||
----- | ----- | ||
[[/ | [[/ | ||