I have a project in a Git repo and I have been sent changes that have been made outside of Git. These changes are based on an earlier version that I have been making changes to myself. What is the best way to merge these external files with mine?
Many thanks!
The best way is to tell git what commit they were based off of, to give you the best chance of an automatic merge.
git checkout <sha1 of the old commit> -b mybranch, to rewind your work tree and start a new branch.git-applyto apply them to the work tree, otherwise just put the updated files in.git checkout master, thengit merge mybranch.