git checkout --track origin/some_remote_branch
git branch --set-upstream-to=upstream/foo git branch --set-upstream-to=upstream/foo foo
git branch --set-upstream foo upstream/foo
git branch -u upstream/foo foo
git branch -u upstream/foo