Set upstream branch

Sets the upstream for a local branch to a remote branch.

Brought to you by Warp, a free terminal reimagined to work like a modern app.
remote
remote_branch
local_branch

Command
Copy
git branch --set-upstream-to=origin/main main
Tags