无法签出bootstrap v4-dev分支

时间:2016-01-12 07:59:01

标签: git twitter-bootstrap

我正在尝试检查bootstrap v4-dev分支。但没有工作。

我的git版本是: git版本2.7.0.windows.1

我已经克隆了存储库。

$ git remote -v
origin  https://github.com/twbs/bootstrap.git (fetch)
origin  https://github.com/twbs/bootstrap.git (push)

执行 git fetch origin 输出任何内容。

$ git fetch origin

$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master

显然在结帐时出错。

$ git checkout v4-dev
error: pathspec 'v4-dev' did not match any file(s) known to git.

$ git checkout -b v4-dev origin/v4-dev
fatal: Cannot update paths and switch to branch 'v4-dev' at the same time.
Did you intend to checkout 'origin/v4-dev' which can not be resolved as commit?

那么哪里出错了?

1 个答案:

答案 0 :(得分:1)

它不是v4-dev。这是主人。您应该按如下方式结帐:

$ git checkout -b v4-dev origin/master