Apply Svn Patch To Git Repository


Answer :

I've had a few issues applying SVN generated patches with git. I'd recommend applying any subversion patches directly with patch command, and use git to verify that said patch was successfully applied.

$ patch -p0 < xxx_parser.patch $ git diff 

@emcconville answer works if you have patch as an executable command in the command line.

For others:

  1. Go to the svn repo

    svn diff --git >> gitFormat.patch

  2. From your (Copy this file to the) git repo

    git apply gitFormat.patch


Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?