Skip to content

PushOpts

PushOpts = object

Defined in: src/core/repo.ts:398

Options for git push

Properties

all?

optional all: boolean

Defined in: src/core/repo.ts:433

Push all branches


atomic?

optional atomic: boolean

Defined in: src/core/repo.ts:453

Use atomic transaction to update refs


branches?

optional branches: boolean

Defined in: src/core/repo.ts:435

Push all branches (alias for all)


deleteRefs?

optional deleteRefs: boolean

Defined in: src/core/repo.ts:439

Delete the specified refs from the remote


dryRun?

optional dryRun: boolean

Defined in: src/core/repo.ts:441

Dry run - show what would be pushed without pushing


followTags?

optional followTags: boolean

Defined in: src/core/repo.ts:451

Push all refs under refs/tags with the commits


force?

optional force: boolean

Defined in: src/core/repo.ts:405

Force updates even if they are not fast-forward


forceIfIncludes?

optional forceIfIncludes: boolean

Defined in: src/core/repo.ts:443

Force only if the remote tip is included in local history


forceWithLease?

optional forceWithLease: boolean | ForceWithLeaseOpts

Defined in: src/core/repo.ts:411

Force with lease - safer force push that fails if remote has been updated

  • true: use default behavior (check current remote ref)
  • ForceWithLeaseOpts: specify refname and optional expected value

ipv4?

optional ipv4: boolean

Defined in: src/core/repo.ts:457

Use IPv4 addresses only


ipv6?

optional ipv6: boolean

Defined in: src/core/repo.ts:459

Use IPv6 addresses only


mirror?

optional mirror: boolean

Defined in: src/core/repo.ts:437

Mirror mode - push all refs


noVerify?

optional noVerify: boolean

Defined in: src/core/repo.ts:417

Bypass pre-push hook


prune?

optional prune: boolean

Defined in: src/core/repo.ts:449

Prune remote-tracking branches that are deleted locally


pushOption?

optional pushOption: string | string[]

Defined in: src/core/repo.ts:455

Transmit push options to the server


quiet?

optional quiet: boolean

Defined in: src/core/repo.ts:429

Operate quietly (suppress progress reporting)


recurseSubmodules?

optional recurseSubmodules: "check" | "on-demand" | "only" | "no"

Defined in: src/core/repo.ts:445

Push submodules recursively


refspec?

optional refspec: string | string[]

Defined in: src/core/repo.ts:403

Refspec(s) to push


remote?

optional remote: string

Defined in: src/core/repo.ts:401

Remote name to push to


repo?

optional repo: string

Defined in: src/core/repo.ts:431

Override the default repository


setUpstream?

optional setUpstream: boolean

Defined in: src/core/repo.ts:415

Set upstream tracking for the pushed branches


signed?

optional signed: boolean | "if-asked"

Defined in: src/core/repo.ts:423

GPG-sign the push (for signed pushes)

  • true: sign with default key
  • ‘if-asked’: sign only if server supports and requests it

tags?

optional tags: boolean

Defined in: src/core/repo.ts:413

Push all tags


thin?

optional thin: boolean

Defined in: src/core/repo.ts:447

Use thin pack transfer


verbose?

optional verbose: boolean

Defined in: src/core/repo.ts:427

Be more verbose