git push

Uploads local commits to a remote repository. The -u flag sets the upstream tracking branch.

Syntax

git
git push [remote] [branch]
git push -u origin main

Example

git
git push origin main
git push -u origin feature/auth  # set upstream
git push                          # push to tracked upstream
git push origin --delete old-branch