【发布时间】:2018-08-12 19:36:51
【问题描述】:
关于问题:Why does git status show branch is up-to-date when changes exist upstream?
我意识到“git status”直到“fetch”才能知道真正的远程最新版本。
但 SourceTree 有时知道它,并在“拉”按钮上显示一个数字。
它怎么能做到这一点?通过使用“获取”?
对了,SourceTree 使用“fetch”,为什么它“有时”会显示最新版本?
【问题讨论】:
-
git ls-remote告诉远程存储库中的 refs 是什么样的,而无需先获取它们。