Is there any way to get a patch created with git format-patch to be svn compatible so that I can submit it to an svn repo?
I\'m working off an svn repo on github and
I always have to Google this but the way I've found that works perfectly (for me) is:
git diff --no-prefix master..branch > somefile.diff
, the master and branch part are optional, depends how you want to get your diffs.patch -p0 < somefile.diff
. It always seems to work fine for me and seems to be the simplest method that I've come across.
Make sure your changes are committed and rebased on top of your local git branch, from git bash run:
git show --pretty >> myChangesFile.patch