相关疑难解决方法(0)

无法签出远程git分支

我在github本地克隆.以下是分支机构列表:

$ git branch -a
* master
  online-demo
  remotes/origin/HEAD -> origin/master
  remotes/origin/develop
  remotes/origin/gh-pages
  remotes/origin/master
  remotes/origin/online-demo
  remotes/pateketrueke/develop
  remotes/pateketrueke/gh-pages
  remotes/pateketrueke/master
Run Code Online (Sandbox Code Playgroud)

当我尝试签出远程分支时,我收到一个错误:

$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git.
Run Code Online (Sandbox Code Playgroud)

我无法弄清楚它来自哪里.我想我多年来一直在做这样的结账.也许我错过了什么.无论如何,我做了git fetch,git fetch origin而且git pull因为我跑出来的想法和仍然有同样的错误.

git branch github

15
推荐指数
3
解决办法
1万
查看次数

标签 统计

branch ×1

git ×1

github ×1