Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用git svn克隆多个分支,而不是所有分支?_Git_Svn_Git Svn_Git Clone - Fatal编程技术网

如何使用git svn克隆多个分支,而不是所有分支?

如何使用git svn克隆多个分支,而不是所有分支?,git,svn,git-svn,git-clone,Git,Svn,Git Svn,Git Clone,克隆整个svn repo很简单:git svn clonesvn://somesvnrepo --标准布局(或使用--branchs=/branchs) 克隆单个分支也很简单,git svn clonesvn://somesvnrepo/branches/mybranch 但是如何才能让git svn克隆多个特定的分支呢?假设我想抓取/branchs/red、/branchs/green和/branchs/blue,尝试以下命令并将所有分支添加到要克隆的位置: git svn clone -s

克隆整个svn repo很简单:
git svn clonesvn://somesvnrepo --标准布局(或使用--branchs=/branchs)

克隆单个分支也很简单,
git svn clonesvn://somesvnrepo/branches/mybranch


但是如何才能让git svn克隆多个特定的分支呢?假设我想抓取
/branchs/red
/branchs/green
/branchs/blue
,尝试以下命令并将所有分支添加到要克隆的位置:

git svn clone -s --prefix=svn/ -b branches -b branches/red -b branches/green -b branches/blue

尝试执行以下命令并添加所有要克隆的分支:

git svn clone -s --prefix=svn/ -b branches -b branches/red -b branches/green -b branches/blue