I'm in a github local clone. Below is the list of branches:
$ 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
When I try to checkout a remote branch, I get an error:
$ git checkout develop
error: pathspec 'develop' did not match any file(s) known to git.
I can't figure out where does that come from. I guess I've been doing such checkouts for ages. Maybe I'm missing something. Anyway, I did git fetch
, git fetch origin
and git pull
because I'm running out of ideas and there's still the same error.