I have a repo named messaging parent. Initially the version of this repo was 1.1.0 . Then it was upgraded to 1.2.0 with some changes. Now we have pushed some more changes on top of this version. For some reason the commit where the version was changed from 1.1.0 to 1.2.0 with some changes has to be reverted. Is it possible to revert that commit but still keep our latest changes which we pushed on top of that? There are no conflicting files in both the commits
yes, you can: TortoiseGit -> Show Log
, then select this commit, press right button and select from context menu: Revert Change by this commit
.
New commit will be created, which revert this commit, all other commits are staying untouched.
From atlassian git revert:
The git revert command undoes a committed snapshot. But, instead of removing the commit from the project history, it figures out how to undo the changes introduced by the commit and appends a new commit with the resulting content. This prevents Git from losing history, which is important for the integrity of your revision history and for reliable collaboration.
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