Git-SVN with multiple branch locations?

前端 未结 3 432
萌比男神i
萌比男神i 2020-12-04 15:53

Our company subversion repo is a bit tricky: We\'ve got a basic \"default\" layout with trunk, tags and branches. However, inside the branches, we have a \"work\" directory

3条回答
  •  甜味超标
    2020-12-04 16:32

    For those looking to do this retroactively, the git-svn manpage for 1.7.x says:

    It is also possible to fetch a subset of branches or tags by using a comma-separated list of names within braces. For example:

    [svn-remote "huge-project"]
         url = http://server.org/svn
         fetch = trunk/src:refs/remotes/trunk
         branches = branches/{red,green}/src:refs/remotes/branches/*
         tags = tags/{1.0,2.0}/src:refs/remotes/tags/*
    

提交回复
热议问题