git fetch(zsh控制台)缺少输出的原因?

git fetch(zsh控制台)缺少输出的原因?,git,zsh,git-fetch,Git,Zsh,Git Fetch,我最近遇到了git的一个问题。对于我的一个存储库,它不再显示git fetch的任何输出 所有存储库都存储在同一台服务器上 查看我的控制台中现在发生的情况: # 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:

我最近遇到了git的一个问题。对于我的一个存储库,它不再显示
git fetch
的任何输出

所有存储库都存储在同一台服务器上

查看我的控制台中现在发生的情况:

# 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] % 

有人也看到了吗?哪些附加信息可能有用?可能的原因和解决方案是什么?请注意,对于此服务器上的其他存储库,这一点也非常适用


[编辑:
删除所有远程跟踪分支后,情况没有改变。

您可以尝试git fetch--verbose吗?假设您的本地存储库中有一个现有的主存储库,我希望推送更新您的本地
refs/origin/master
,这将导致fetch错误行为的输出。@edi9999 OK,甚至
git fetch--verbose
也会说
=[最新]master->origin/master
,只引用master分支的条目。但是它已经获取了一个提交:
git log--oneline current_branch..origin/master
给了我:
af3df68小重构
。我当前的_分支在获取之前与origin/master是最新的。我不太明白,为什么git fetch不告诉我origin/master已经更新了。我还没有本地主分支,而我当前的_分支没有远程跟踪分支。有什么建议吗,我误解了什么?