git-svn branching

前端 未结 2 1601
再見小時候
再見小時候 2020-12-13 18:53

I am using git with an svn repository everything is going fine I did all my branching with git so I did not branch on svn but I branched with git and pushed those branches t

相关标签:
2条回答
  • 2020-12-13 19:34

    You have multiple (or no) directories from svn marked as place for branches. Look into you .git/config file, there would be section like that:

    [svn-remote "svn"]
    url = file:///someurlto/svn
    fetch = trunk:refs/remotes/trunk
    branches = branches/*:refs/remotes/*
    branches = branches2/*:refs/remotes/*
    

    There will be multiple entries for branches. (Alternately, if you don't have any branch entries, the first line should work with a standard SVN repo layout.)

    So, when branching you must point in which directory the branch should be created:

    git svn branch someFeature -m "test" --destination branches2
    

    where the last element is one of the directories from branches lines in .git/config.

    0 讨论(0)
  • 2020-12-13 19:42

    If I read the git svn man page right:

    git svn <command> [options] [arguments]
    

    , you should type:

    git svn branch -m "message" someFeature 
    

    instead of:

    git svn branch someFeature -m "message"
    
    0 讨论(0)
提交回复
热议问题