I am looking for a TortoiseGit operation which is equivalent to:
TortoiseSVN --> Show log --> Revert to this revision
In TortoiseSVN, this operation reverts the local repository to the revision selected, while keeping all changed files checked out.
In other words, the changed files show up when I do TortoiseSVN --> Check for modifications
, and I can easily discard those changes when I finish testing the revision that I have reverted to.
For some reason, I am finding it very difficult to perform this useful operation on TortoiseGit.
The workaround that I am currently using is:
TortoiseGit --> Show log --> Export this revision...
Is there a more straightforward manner for this?
I've tried the following TortoiseGit operations, but they just "cause havoc" on my local repository, and I am unable to proceed with the "standard" Commit & Push procedure afterwards:
Reset "master" to this...
Switch/Checkout to this...
Rebase "master" onto this...
Revert change by this commit
I found a similar question here, but the answers suggest options that are not even viable in my TortoiseGit popup menu.
I found another batter way than I answered before, and you don't care about Renamed
and added
itme(s) in this way:
Select all commits you want to revert, and right click on them, and click Revert changes by these commits
Will be a progress dialog
Then, ask you if perform the Commit. Click Commit
The commit dialog:
But, as you can see, TortoiseGit gives out one sha1 value, instead of all commit sha1 values you want to revert. So you may be want to add/modify more information there. Like this:
The log of that revert commit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With