I'm pretty new to git. On one computer I ran
git stash save myfeature
git stash show -p > myfeaturepatch
I copied myfeaturepatch
to a second computer and ran
git apply myfeaturepatch
I made some changes which included adding some font files (binaries) and then ran
git stash save myfeature2
git stash show -p > myfeaturepatch2
When I try to apply this second version back to my first computer, I get
error: cannot apply binary patch to 'myfont.ttf' without full index line
My guess is I needed to run git stash save --binary myfeature2
when I made the stash. Unfortunately, since git stash
deletes the changes it saves to the file, and since I can't apply my patch to either computer due to the above error, I don't currently have access to the changes I made.
I've tried a bunch of different git apply
and git stash
commands, but I don't have a complete enough understanding of what's going on and what the arguments mean to pull out just the non-binary files from my patch file. I assume there's a way to do this.