Push a new branch and track it
Pushes the branch to the remote and sets it as upstream, so later git push and git pull need no arguments.
git push -u origin branchEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/git-push.md), licensed under CC BY 4.0.