我有以下.config
文件在我的克隆回购使用Git的svn:我的本地git-svn分支绑定了哪些远程分支?
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[svn-remote "svn"]
url = https://svn.domain.com:8443/svn
fetch = trunk:refs/remotes/trunk
branches = branches/{some_branch}:refs/remotes/branches/*
当我做git branch -a
,我得到:
$ git branch -a
* master
remotes/branches/some_branch
remotes/trunk
我怎么知道哪个偏远地方master
分支(追踪)?请注意,看起来这个答案必须特定于git-svn,因为正常的git解决方案(例如git remote show origin
)不起作用。
编辑
在仔细阅读我的问题后,我不确定它是否有意义。基本上我只想知道哪个SVN分支的'主'是必然的。我假设遥控器是分支机构,但它们实际上只是其他回购AFAIK的网址。所以,我真正想要的是远程SVN分支&本地分支之间的映射。