我不确定(可能是用 EGit 创建的分支)我如何在我的配置中以这一部分结束:
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "sfc"]
remote = .
merge = refs/heads/master
rebase = true
我想了解这一点。我不确定中的点remote = .
是否被解释为 url(当前目录)或特殊的存储库名称(我自己的别名)?那是合法的/正常的/典型的,还是我应该猜这搞砸了?有一个指向同一个存储库的“远程”规范对我来说看起来很奇怪。此外,该分支确实存在于远程......这对推/拉行为有什么影响?
更多信息:
$ git remote show origin
* remote origin
Fetch URL: ssh://git@10.0.0.3/var/gitrep/zzz.git
Push URL: ssh://git@10.0.0.3/var/gitrep/zzz.git
HEAD branch: master
Remote branches:
master tracked
sfc tracked
Local branch configured for 'git pull':
master merges with remote master
Local refs configured for 'git push':
master pushes to master (fast-forwardable)
sfc pushes to sfc (up to date)
$ git branch -vv
* master f394d8b [origin/master: ahead 1] Bla blah...
sfc 8065309 [master: behind 89] Bla blah...