问题描述
我正在使用的SVN存储库有相当多的分支机构。我只对与他们中的三个合作感兴趣,并且可能是未来将创建的另一个新SVN分支。我到目前为止已经发现的是,命令 git svn clone URL -T trunk -b branches -t tags
会克隆所有SVN分支,并随后克隆 git svn fetch
命令也可以在所有SVN分支上运行。 有没有办法让我指定我想要的几个分支用?我很可能没有足够的磁盘空间来存储我的开发机器上的所有SVN分支,我想避免一个非常耗时的 git svn clone
操作。 / p>
显示了如何有选择地将Subversion分支添加到 git-svn
存储库。
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.
Multiple branches using git-svn shows how to selectively add Subversion branches to a git-svn
repository.
这篇关于如何使用git-svn获取/克隆只有几个分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!