tags:

views:

33

answers:

2

I've cloned a replicated svn repository (svnsync to local file system). All the branches etc. are now available in git. Now i would like to start working on svn branches

git checkout remotes/B_XYZ

and doing some commits via git. Now i want to change to a different SVN branch via

git checkout remotes/B_ABC

and doing some changes as well.

And now the final question is: Is it possible to commit the changes i made on the branches (in git) to the original Subversion repository back on the appropriate branches?

+1  A: 

Is git svn dcommit not working for you?

Hank Gay
But as far as i understand the doc the git svn dcommit will commit to the location where i cloned from which is a local repository which i synced. But i would like to dcommit the changes to a different repository (e.g. http://svn.exz.de/)?
khmarbaise
Sorry, I didn't understand that part at first. You could probably manually add some remotes, but to me it would be easier to set up a new `git svn` integration (one that actually talks to the true `svn` repo, not a copy) in a separate repository and then [`git cherry-pick`](http://www.kernel.org/pub/software/scm/git/docs/git-cherry-pick.html) the changes over into it.
Hank Gay
I used a replicated SVN repository, cause the original is currently down. That's the reason to use the replicated SVN repos instead of the original.
khmarbaise
+1  A: 

After some experiments i figured out how to do the commit to the new repository which is not the replicated one.

git svn dcommit --commit-url URL/branches/BRANCHNAME

With the command above i can commit the changes i made in git into the new svn repository.

khmarbaise