I have a .diff file created by a coworker, and would like to apply the changes listed in that diff file to my local branch of the exact same repository. I do not have access to that worker's pc or branch that was used to generate this diff file.
Obviously I could go line by line and retype everything, but i'd rather not subject the system to human error. What's the easiest way to do this?
git diff
andgit apply
because I used an alias which translated togit diff --ignore-all-space
. This made my patch invalid. Make sure to just use baregit diff
! – Davis