1
我在Windows上使用git-svn repo,使用msysgit 1.8.5。这里是我的.git/config
:在git中创建分支时出错
[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/{BR_4_1_4}:refs/remotes/branches/*
我的分支机构名单:
$ git branch -a
BR_4_1_4
* trunk
remotes/branches/BR_4_1_4
remotes/trunk
我想创建过的trunk
命名trunk_work
一个分支,所以我发出以下命令(你也可以看到后续错误):
$ git branch trunk_work
warning: refname 'trunk' is ambiguous.
fatal: Ambiguous object name: 'trunk'.
任何想法为什么这是失败?我谷歌搜索了一下,但没有看到任何具体的问题。提前致谢。
http://stackoverflow.com/a/12225704/703229 – Sam
@SamSullivan我不会创建一个标签,我想创建一个分支一个完全不同的名称。不知道你期望我找到什么... –
潜在的帮助:http://stackoverflow.com/questions/4644380/git-warning-refname-xxx-is-ambiguous(第二高率的答案可能至少给出一个解决方法)。 – Chris