Commands.app

git push

Remote Operations

Update remote repository with local commits

Options & Flags
Available options for this command
-u origin branch

Set upstream branch

--force

Force push (use with caution!)

--tags

Push tags

Examples
Common usage examples

Push commits to remote

git push

Push and set upstream

git push -u origin main

Delete remote branch

git push origin --delete branch-name
Notes
  • Requires write access to remote repository
Related Commands
You might also find these useful