Skip to content

Git Commit

Creates a new commit from the staged changes.

Inputs#

Port Description
invalid port type: git-repo Repository
The Git repository object from a clone or open node.
Message
The commit message.
Author Name
The name of the commit author. Overrides the repository's config.
Author Email
The email of the commit author. Overrides the repository's config.
Stage Changes
Whether to stage all changes before committing.

Outputs#

Port Description
Success
Executes if the commit is created successfully.
Error
Executes if there is an error during the commit.
Commit Hash
The full hash of the newly created commit.

Addendum#

This node records the changes currently in the staging area to the repository's history.

The repo input should be connected to the output of a git-clone or git-open node. The author information is optional; if not provided, it will be taken from the repository's Git configuration.

ID: git-commit@v1