Git set upstream/tracking branch

Again a nice post on stackoverflow - here’s how to set the tracking or upstream branch upstream from remote name origin for a local branch master:

git branch --set-upstream master origin/upstream

Cheerio,
iss