我在svn上查看我自己的私人分支:
git svn clone svn://server/cfe/project/branches/fb_oz_3173_email
现在我在分行master
。
我想:
fb
svn://server/cfe/project/trunk
我无法做对。有人可以给我带头吗?
git branch -m fb
答案 0 :(得分:5)
嗯,第二部分也有答案
git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/
git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch
git svn fetch newbranch [-r<rev>]
git checkout -b local-newbranch -t newbranch
git svn rebase newbranch
最初发布在此How do I tell git-svn about a remote branch created after I fetched the repo?