我最近遇到了git的问题。对于我的某个存储库,它不再显示git fetch
的任何输出。
所有存储库都存储在同一gitolite服务器上。
看看我的控制台现在发生了什么:
# jul is the user
# pushing some work on master
jul@jul-Precision-M4800 ~/workspace/repo-name (git)-[local_branch] % git push origin local_branch:master
Counting objects: 47, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 777 bytes | 0 bytes/s, done.
Total 7 (delta 5), reused 0 (delta 0)
To gitolite:repo-name
9bd0d8e..308fe47 local_branch -> master
# alright, later (I know there are changes): fetch a fresh(!) master
jul@jul-Precision-M4800 ~/workspace/repo-name (git)-[local_branch] % git fetch
jul@jul-Precision-M4800 ~/workspace/repo-name (git)-[local_branch] % git fetch --all
Fetching origin
# no output!!
# but there are updates (2 fresh commits):
jul@jul-Precision-M4800 ~/workspace/repo-name (git)-[local_branch] % git log --oneline local_branch..origin/master
acde85f Merge branch 'master' of gitolite:repo-name
3b1eb49 any commit message
jul@jul-Precision-M4800 ~/workspace/repo-name (git)-[local_branch] %
有人也看到了吗?哪些额外的信息可能会有所帮助?可能的原因和解决方案是什么?请注意,这同样适用于此服务器上的其他存储库。
[编辑:] 删除所有远程跟踪分支后,情况没有改变。