How to reset file to specified commit in SmartGit? For example, I had created a commit and found that one file was wrongly changed, and I want to revert only that file.
Open the Log, navigate to the commit from which you want to resurrect the file, select the file in the Files view and invoke Save As from the context menu.
Another possibility: revert the whole commit with a wrongly changed file, but do not commit this change (select "Revert", not "Revert & Commit"). Then select all files except for the one you actually want to revert and discard the changes. Now you have this file in its original state in your working directory. You can commit it or modify it further.
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