

Update2: It appears that I have to address the different folder structure used in the diff patch.

But the apply command still seems to have done nothing. Update: The error above went away after installing XCode command line tools (more info here, ). Library/Developer/CommandLineTools/usr/bin/xcrun (/Library/Developer/CommandLineTools), missing xcrun at: When I run the git command I get an error:ĭirectory$ git apply xcrun: error: invalid active developer path

How do you take a git diff file, and apply it to a local branch that is a copy of the same repository? I also have Github Desktop available to use but that doesn't seem to have an "Apply diff" option either. I don't want to use git command line tools (I won't reject answers but will not accept them as solutions).įor example, I want to know if I can right click on the main source file and select an option, "Apply diff patch" and it opens a file dialog allowing me to select the diff file and apply the changes. Visual Studio Code has added some git support in the last few versions. I received a diff patch for a project I'm working on and I want to know if there is a simple way in Visual Studio Code, to apply that diff to the file it is referred to?
