【问题标题】:How SourceTree know the real remote version?SourceTree 如何知道真正的远程版本?
【发布时间】: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 是什么样的,而无需先获取它们。

标签: git atlassian-sourcetree


【解决方案1】:

源树有一个设置,每 X 分钟在后台运行一个 fetch 命令。这样它就可以知道是否有上游更改,而无需您显式点击获取按钮:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-08
    • 2014-04-21
    • 2019-03-30
    相关资源
    最近更新 更多