I have a repo that has another remote upstream besides origin. I can do git checkout origin/master, but when I run git checkout upst
upstream
origin
git checkout origin/master
git checkout upst
If you just added the remote, you'll need to fetch it so that Git knows which branches are available:
fetch
git fetch upstream master
After this you can do
git checkout upstream/master
without any issues.