May 16, 2014

Push an existing git repos to a SVN repos

The old thing (SVN) and new thing (Git) sometimes are forced to co-exist.

Assume we are at local repos work folder, here are the trick (rebase git-svn):

$ git svn init http://svn/path
$ git svn fetch
$ git rebase git-svn
$ git svn dcommit
From now on, to push to SVN, issue:
git svn dcommit 
to pull from SVN:
git svn rebase

No comments:

Post a Comment

New comment