TOOL » GIT

Push

Usage

Update remote refs along with associated objects.

shell
git push OPTIONS REPOSITORY REFSPEC
  • REPOSITORY defaults to origin
  • REFSPEC defaults to the current branch
OptionDescription
-d --deleteAll 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