【问题标题】:Updating .git with newly created remote branch [duplicate]使用新创建的远程分支更新 .git [重复]
【发布时间】:2021-11-05 08:27:16
【问题描述】:

上下文:

  • 在分支 A 上工作
  • 分支 B 已远程创建并正在更新
  • git branch -a 不显示分支 B

B分支如何签出?

【问题讨论】:

    标签: git git-branch


    【解决方案1】:

    你应该这样做:

    git fetch --all # Fetch all remote branches
    git checkout B
    

    【讨论】:

      猜你喜欢
      • 2016-02-06
      • 2015-02-25
      • 2015-08-27
      • 1970-01-01
      • 2016-05-06
      • 2013-12-14
      • 2021-10-05
      • 2016-01-04
      • 2016-04-04
      相关资源
      最近更新 更多