How can I use git as an intermediate code review stage before pushing out the remote subversion?
Question
I would like to be able to review code checked into the internal subversion repository before pushing those changes to the remote subversion server. How can I use git to stage the development subversion for review?
I have already fetched the internal subversion into git on my machine. How do I now push the changes into the remote subversion server?
Update: I am looking for a solution that allows me to pull from one subversion repository, review the code and push into a different subversion repository. Is this possible with git-svn?
Solution
From the git-svn manpage:
--svn-remote <remote name>
Specify the [svn-remote "<remote name>"] section to use,
this allows multiple SVN repositories to be tracked. Default: "svn"
So add your second SVN server to your .git/config
as a new [svn-remote]
stanza. You can then use this option to reference it.
OTHER TIPS
Go take a look at creating patches with Git.
Why not just have one SVN repository with a development branch and a "blessed" branch where you merge the approved revisions to?