git push
Remote OperationsUpdate remote repository with local commits
Options & Flags
Available options for this command
-u origin branchSet upstream branch
--forceForce push (use with caution!)
--tagsPush tags
Examples
Common usage examples
Push commits to remote
git pushPush and set upstream
git push -u origin mainDelete remote branch
git push origin --delete branch-nameNotes
- Requires write access to remote repository