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 mainExample
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