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

喜欢而已 提交于 2020-01-16 19:43:09

问题


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.



来源:https://stackoverflow.com/questions/13013966/how-to-use-svn-dcommit-for-svn-all-fast-export-qt-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!