Skip to content

Git Commit

Creates a new commit in a Git repository.

Inputs#

Port Description
invalid port type: git-repo Repository
The local repository to commit to.
Message
The commit message.
Author Name
The name of the commit author. Overrides the repository's configuration.
Author Email
The email of the commit author. Overrides the repository's configuration.
Stage All
If true, automatically stages all modified and deleted files before committing. New (untracked) files are not staged.

Outputs#

Port Description
Success
Executes on successful commit.
Error
Executes if an error occurs.
Commit Hash
The full hash of the new commit.

Addendum#

This node creates a new commit, recording changes to the repository's history.

Staging Behavior#

The stage input controls which changes are included in the commit: - false (default): Commits only changes that have been explicitly added to the staging area (e.g., using a git-add node). - true: Automatically stages all modified and deleted files before committing. This is equivalent to the git commit -a command and will not stage new, untracked files.

Author Information#

You can optionally provide an author_name and author_email to override the repository's default Git configuration for this specific commit.

ID: core/git-commit@v1