git branch --set-upstream-to=upstream/localfoo git branch --set-upstream-to=upstream/localfoo localfoo