Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Push

Further refinements for the git push command.

Hierarchy

  • Push

Index

Properties

Optional Readonly force

force: boolean

Usually, the command refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it. This flag disables these checks, and can cause the remote repository to lose commits; use it with care.

Optional Readonly localBranch

localBranch: string

The name of the local branch to push. If not given, then the currently active branch will be used instead.

Optional Readonly remote

remote: string

The name of the remote to push to. If not given, then the default remote will be used. It is the origin by default.

Optional Readonly remoteBranch

remoteBranch: string

The name of the remote branch to push to. If not given then the changes will be pushed to the remote branch associated with the local branch.

git push <remote> <localBranch>:<remoteBranch>

Optional Readonly setUpstream

setUpstream: boolean

Set upstream for every branch that is up to date or successfully pushed, add upstream (tracking) reference, used by argument-less git-pull and other commands.