0

svn repo 上有很多分支:

svn ls http://src.chromium.org/svn/
PRESUBMIT.py
branches/
codereview.settings
releases/
trunk/

在我使用 git svn clone 克隆它之后,我的 git svn repo 上没有 svn 分支,为什么?

git svn clone -s --revision=157076   http://src.chromium.org/svn/
mirror0@lab:~/chrome/g/chrome_g$ git branch -a
* master
  remotes/trunk
mirror0@lab:~/chrome/g/chrome_g$ git branch -r
  trunk
4

1 回答 1

1

git svn has some commandline options which control how the svn-layout looks like. See the blog-post at http://www.jukie.net/bart/blog/svn-branches-in-git for more information about handling branches, specifically there are options to specify where trunk, branches and tags are, i.e. "-T trunk -b branches -t tags".

In your case it seems branches were created at the root folder directly, not sure if git svn supports this non-standard usage of branches...

于 2012-09-23T17:20:29.463 回答