Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying .diff in source tree of Mac

I use a mac and I have a .diff file that is to be applied from Sourcetree.

Can someone help me with the steps for the same?

like image 557
Srujana Puttagunta Avatar asked Mar 05 '18 06:03

Srujana Puttagunta


People also ask

How do I compare branches in Sourcetree?

Another way to do this is to right-click on a branch and select the "Diff against current" context menu command (current refers to the branch you are currently working on). This will give you the diff between the head commits of the two branches.


1 Answers

I finally found the answer to this for MAC.

Sourcetree -> Actions -> Apply Patch -> Browse -> (Choose File) -> Apply

You can import the .diff file. Its similar to how we apply the regular patch.

like image 162
Srujana Puttagunta Avatar answered Oct 27 '22 09:10

Srujana Puttagunta