git/push

Push to Remote

Update remote refs along with associated objects

git
push
remote

Command

git push

Explanation

git push is used to update remote refs along with associated objects. It updates the remote refs along with the associated objects.

Examples

Push current branch

git push

Push to specific branch

git push origin main

Push and set upstream

git push -u origin new-branch