Skip to content

Git Push

Pushes committed changes to a remote repository.

Inputs#

Port Description
invalid port type: git-repo Repository
The local Git repository.
invalid port type: credentials
Credentials for authenticating with the remote. Required for private repositories.
Remote Name
The name of the remote repository to push to. Defaults to 'origin'.
Branch
The branch to push. If empty, the current branch is used. Ignored if 'Push Tags' is true.
Push Tags
If true, pushes all local tags. This overrides the 'Branch' input.
Force Push
If true, forces the push. Warning: This overwrites remote history.

Outputs#

Port Description
Success
Executes if the push is successful or the remote is already up-to-date.
Error
Executes if an error occurs during the push operation.

Addendum#

Performs a git push operation to a remote repository.

The node follows this logic to determine what to push: 1. If Push Tags is true, all local tags are pushed. 2. Otherwise, if a Branch is specified, that branch is pushed. 3. Otherwise, the current active branch is pushed.

Warning: Using Force Push can overwrite remote history and should be used with extreme caution.

ID: core/git-push@v1