Interface PushOptions

PushOptions defines the supported options for the Git push command.

Hierarchy

  • PushOptions

Properties

--all?: null

Pushes all branches.

--atomic?: null

Uses an atomic transaction to update local refs.

--delete?: null

Deletes all listed refs from the remote repository.

--follow-tags?: null

Pushes all the refs that would be pushed without this option, and also pushes annotated tags in refs/tags that are missing from the remote but are pointing at commit-ish that are reachable from the refs being pushed.

--force?: null

Updates a remote ref whose current value does not match what is expected.

--force-if-includes?: null

Forces an update only if the tip of the remote-tracking ref has been integrated locally. See also --no-force-if-includes.

--force-with-lease?: null | string

Permits updating a remote ref that is not an ancestor of the local ref used to overwrite it.

--ipv4?: null

Uses IPv4 addresses only, ignoring IPv6 addresses.

--ipv6?: null

Uses IPv6 addresses only, ignoring IPv4 addresses.

--mirror?: null

Specifies that all refs under refs/ be mirrored to the remote repository.

--no-atomic?: null

Does not use an atomic transaction to update local refs.

--no-force-if-includes?: null

The complement of --force-if-includes.

--no-force-with-lease?: null

Disallows updating a remote ref that is not an ancestor of the local ref used to overwrite it.

--no-recurse-submodules?: null

Does not ensure all submodule commits used by the revisions to be pushed are available on a remote-tracking branch.

--no-signed?: null

Does not GPG-sign the push request to update refs on the receiving side.

--no-thin?: null

The complement of --thin.

--no-verify?: null

Disables the pre-push hook.

--porcelain?: null

Produces machine-readable output.

--progress?: null

Forces progress reports to the standard error stream.

--prune?: null

Removes remote branches that don’t have a local counterpart.

--push-option?: string | string[]

Transmits the given string to the server, which passes them to the pre-receive as well as the post-receive hook.

--quiet?: null

Suppresses all output.

--recurse-submodules?: string

Ensures all submodule commits used by the revisions to be pushed are available on a remote-tracking branch.

--repo?: string

Equivalent to the repository argument.

--set-upstream?: null

Adds upstream (tracking) reference every branch that is up to date or successfully pushed.

--signed?: null | string

GPG-signs the push request to update refs on the receiving side.

--tags?: null

Pushes all refs under refs/tags.

--thin?: null

A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. See also --no-thin.

--verbose?: null

Suppresses all output.

--verify?: null

Enables the pre-push hook.