how to use svn dcommit for svn-all-fast-export Qt

2019-08-29 08:38发布

问题:

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.

回答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



回答2:

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.



标签: git svn git-svn