【发布时间】:2017-07-04 17:58:21
【问题描述】:
在失去互联网访问之前,我运行git fetch --all 来获取所有分支。
现在无法连接到服务器,我该如何处理
git pull?
$ git checkout feature.a
Already on 'feature.a'
Your branch is behind 'origin/feature.a' by 7 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
$ git pull
ssh: Could not resolve hostname unavailable.example.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
pull只是fetch后跟merge。所以你现在需要做的就是git merge origin/branch mybranch? -
效果很好。老实说,我没有意识到 pull 执行了合并,我虽然
origin/x去了原点那时。嗯。现在这很有意义。如果您想将此添加为答案,我会接受。我在发布其他答案之前阅读了此内容.. -
当然可以。