配置 git 辅助仓库
由于某种原因 git log repo2/master..master -- . 对我不起作用("fatal: bad revision 'repo2/master..master'"
,这同样适用于 git checkout repo2/master -- .)。我的配置如下所示:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://[email protected]/var/git/me/repo.git
[remote "repo2"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://[email protected]/var/git/me/repo2.git
我运行 git checkout origin/master -- . 没有问题,因此由于某种原因该问题仅适用于“repo2”。谢谢!
For some reason git log repo2/master..master -- .
doesn't work for me ("fatal: bad revision 'repo2/master..master'"
, the same applies to git checkout repo2/master -- .
). My config looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://[email protected]/var/git/me/repo.git
[remote "repo2"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://[email protected]/var/git/me/repo2.git
I have no problem running git checkout origin/master -- .
, so the problem only applies to "repo2" for some reason. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
repo2 的获取不应该是:
Shouldn't the fetch for repo2 be: