Actions30
Git → Commit
AI-generatedSummary
Commit staged changes in a git repository inside an E2B sandbox with a specified commit message, optionally including author name/email and allowing empty commits.
Inputs
- Sandbox ID (required) — ID of the sandbox containing the git repository.
- Repository Path (required) — Path to the git repository inside the sandbox.
- Message (required) — Commit message describing the changes.
- Author Name — Optional name of the commit author.
- Author Email — Optional email of the commit author.
- Commit Options — Options for the commit, including whether to allow an empty commit.
- Timeout — Timeout in seconds for the E2B operation; defaults to 300 seconds.
Output shape
a single item containing the result of the git commit command and related metadata
The output includes success status, exit code, commit message, author details, repository path, and whether an empty commit was allowed. Errors will cause the node to error unless 'Continue On Fail' is enabled.
Examples
Example 1: Commit staged files with a message
Provide Sandbox ID, Repository Path, and Message parameters. Optionally specify Author Name and Author Email.