我正在尝试签出引导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获取原点输出。
$ 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?那么哪里出了问题?
发布于 2016-01-12 08:07:42
不是v4-dev。是师父。您应该按以下方式结帐:
$ git checkout -b v4-dev origin/masterhttps://stackoverflow.com/questions/34738263
复制相似问题