TOOL » GIT
Push
Usage
Update remote refs along with associated objects.
shell
git push OPTIONS REPOSITORY REFSPECREPOSITORYdefaults tooriginREFSPECdefaults 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 mainDelete branch in remote:
shell
git push -d origin some-feature