How to switch svn branches using git-svn?

后端 未结 3 1721
半阙折子戏
半阙折子戏 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:16

    From my experience, it works fine doing just

    git checkout -b RELEASE-0.12 RELEASE-0.12
    

    The local/ prefix is not needed, and it is less confusing to me to leave it out. The old RELEASE-0.12 branch is already a remote branch, so git will not confuse it with the new branch.

    The command above will not create a tracking branch relationship. But that is not needed, git svn rebase works as expected anyway.

提交回复
热议问题