Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseGit: Apply patch as manual changes (without trailing information like Description, Date etc). Possible?

What I want is when I apply TortoiseGit (TGit) patch, it should not show any linkage. It should show changes as if I have made changes manually (This happens in TSVN because when we apply patch, they are shown as manual changes)

Why I want this is because I need to make additional changes along with patch changes.

Steps I did/doing:

  1. Created a TGit patch from a local commit.
  2. Then deleted the local repository and re-downloaded the branch from remote.
  3. Now applied patch. It shows information of commit like description and date etc. Don't need this. It should show patch changes as manual changes.

Is it possible using TGit?

enter image description here

like image 284
Nikhil Agrawal Avatar asked Dec 09 '25 19:12

Nikhil Agrawal


1 Answers

You can apply a serial patch and then reset the index to the previous commit (as described by Lex Li), however, another approach would be to right click on the .patch- or .diff-file and select "Review/apply single patch...". Then TortoiseGitMerge is opened and you can apply and modify the files manually. Afterwards you can commit your all changes.

like image 88
MrTux Avatar answered Dec 12 '25 11:12

MrTux



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!