【发布时间】:2015-09-26 00:31:41
【问题描述】:
我正在尝试检查本地不存在的远程分支。
git checkout -b branch_name origin/branch_name
给予:
fatal: Cannot update paths and switch to branch 'branch_name' at the same time.
Did you intend to checkout 'origin/branch_name' which can not be resolved as commit?
git branch -a 没有显示我要结帐的分支。
如何在本地签出远程分支?
【问题讨论】:
-
Checkout remote Git branch 的可能重复项
-
我确实尝试了该问题的解决方案,但没有奏效。
-
确保在尝试签出分支之前先发送
git fetch... -
@zoe 为什么我的主页突然变成了你编辑的问题?
-
@hobbs 清理checkout 标签。
标签: git github branch git-checkout git-remote