Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Created July 16, 2014 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianstorti/6137a1b65bde39562de8 to your computer and use it in GitHub Desktop.
Save brianstorti/6137a1b65bde39562de8 to your computer and use it in GitHub Desktop.
Convert git diff to svn patch
git diff --ignore-space-at-eol --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > patch.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment