How to switch svn branches using git-svn?

后端 未结 3 1716
半阙折子戏
半阙折子戏 2021-02-01 18:36

Duplicate

How do I make git-svn use a particular svn branch as the remote repository?

I am using git-svn to track development by s

3条回答
  •  清酒与你
    2021-02-01 19:17

    These commands have been incredibly useful for me when working on svn branches via git-svn:

    #create local Git branch that mirrors remote svn branch
    
    git checkout -b local/RELEASE-0.12 RELEASE-0.12 
    #will connect with a remote svn branch named ‘RELEASE-0.12′
    
    # -n will show which svn branch you will commit into:
    git svn dcommit --dry-run 
    

    See full explanation in my article on justaddwater.dk.

提交回复
热议问题