How do I fetch/clone only a few branches using git-svn?

喜欢而已 提交于 2019-12-10 13:59:46

问题


The SVN repository that I am working with has a rather large number of branches. I am only interested in working with three of them and maybe another new SVN branch that will be created in the future. What I have figured out so far is that the command git svn clone URL -T trunk -b branches -t tags will clone all SVN branches and subsequent git svn fetch commands will also operate on all SVN branches.

Is there a way for me to specify the few branches that I want to work with? I most likely don't have enough disk space for all the SVN branches on my dev machine and I'd like to avoid an extremely time-consuming git svn clone operation.


回答1:


Multiple branches using git-svn shows how to selectively add Subversion branches to a git-svn repository.



来源:https://stackoverflow.com/questions/1892133/how-do-i-fetch-clone-only-a-few-branches-using-git-svn

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