git-svn: how do I create a new svn branch via git?

前端 未结 3 1860
时光说笑
时光说笑 2020-11-29 14:39

I have a git repository which tracks an svn repository. I cloned it using --stdlayout.

I created a new local branch via git checkout -b foobar

3条回答
  •  佛祖请我去吃肉
    2020-11-29 15:06

    as of git v1.6.1, git svn branch is available.

    From the git docs:

        branch
            Create a branch in the SVN repository.
    
            -m, --message
                Allows to specify the commit message.
    
            -t, --tag
                Create a tag by using the tags_subdir instead of the branches_subdir
                specified during git svn init.
    

    Previous versions of git do not provide a way to create an svn branch.

提交回复
热议问题