3

Once you have checked out a SVN repository with git-svn, and you do some work, how do you push your commits to the SVN repository?

Nactus
  • 702
  • 2
  • 13
  • 35
lj8888
  • 51
  • 1
  • 4
  • Most of these types of "how to" questions have answers on google and other online sources; like here: https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion – Nactus Aug 31 '15 at 04:44

2 Answers2

3

You can push them back to your SVN repo with git svn dcommit

Commit each diff from a specified head directly to the SVN repository, and then rebase or reset (depending on whether or not there is a diff between SVN and head).
This will create a revision in SVN for each commit in git.

It is also possible to make just one SVN revision when pushing back.

Note:

It is recommended that you run git svn fetch and rebase (not pull or merge) your commits against the latest changes in the SVN repository.

That will avoid merge conflict resolution locally (in your git repo) before sending back the result in the SVN repo.

If the dcommit operation fails in the middle of transmitting a large number of commit, this blog post can show you how to pick up where you left off.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

You can push the commits you have done with git svn dcommit

git-svn is a way to use a subversion repository with the git toolset.

Peter Smit
  • 27,696
  • 33
  • 111
  • 170