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. |
| The commit message. | |
| The name of the commit author. Overrides the repository's configuration. | |
| The email of the commit author. Overrides the repository's configuration. | |
| If true, automatically stages all modified and deleted files before committing. New (untracked) files are not staged. |
Outputs#
| Port | Description |
|---|---|
| Executes on successful commit. | |
| Executes if an error occurs. | |
| 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