I have a repo that has another remote upstream
besides origin
. I can do git checkout origin/master
, but when I run git checkout upstream/master
, I get:
error: pathspec 'upstream/master' did not match any file(s) known to git.
This does not work either:
$ git fetch upstream
From https://github.com/getsentry/sentry
* branch HEAD -> FETCH_HEAD
$ git co -b asdf --track upstream/master
fatal: Cannot update paths and switch to branch 'asdf' at the same time.
Did you intend to checkout 'upstream/master' which can not be resolved as commit?
How to check out branches on upstream
remote as I do on origin
remote? My git version is 2.1.2.