0

I have imported the subversion repository to Git repository by svn-all-fast-export.

However, after imported the project, I don't know the way to keep maintain reposirory synchonize with the SVN which still have some users using.

I cannot find the way to use git svn fetch or git svn dcommit after done the imported.

2
  • Do you mean SVN <-> Git synchronization on the server? Synchronization between local Git and remote SVN? Commented Oct 22, 2012 at 16:29
  • Yes. Previously, I use SVN2Git, so, I still using git svn fetch and git svn dcommit because the main repository still in the SVN, not Git. Commented Oct 23, 2012 at 3:57

2 Answers 2

1

SVN2Git is for 1-shot conversion. For SVN <-> Git synchronization on the server, you need to setup any SVN-Git gateway like SubGit. To do that run on the server

$ subgit install path/to/svn/repository

And setup Git access to the Git repository created at path/to/svn/repository/.git

Alternatively you can use git-svn locally and just SVN on the server. To start working with SVN repository, clone it first:

$ git svn clone <URL> --stdlayout path/for/local/git/repository

to fetch changes from SVN run git svn rebase and to push current branch --- git svn dcommit

Sign up to request clarification or add additional context in comments.

Comments

0

svn-all-fast-export is incremental, if you're careful not to delete the marks and logs files. So, you can periodically run it on your SVN repository, and it will update the git repositories.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.