如何使用git svn克隆多个分支,而不是所有分支?
克隆整个svn repo很简单:如何使用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
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