TOOL » GIT
Push
Usage
Update remote refs along with associated objects.
shell
git push OPTIONS REPOSITORY REFSPEC
REPOSITORY
defaults toorigin
REFSPEC
defaults to the current branch
Option | Description |
---|---|
-d --delete | All listed refs are deleted from the remote repository. |
Examples
Push to branch main
:
shell
git push origin main
Delete branch in remote:
shell
git push -d origin some-feature