Action Source Control
Git Operations
Performs basic Git operations like Clone, Add, Commit, Push, and Pull on a repository.
Node IDGitOperationsAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Repository Path repository_path | file_picker | Yes | — | The local file path to the Git repository. For 'Clone', this is the destination path. |
Operation operation | enum | Yes | Add | The Git operation to perform. |
Remote URL remote_url | string | No | — | The URL of the remote repository. Required for 'Clone' operation. Can be a local path or an HTTP/SSH URL. |
Remote Name remote_name | string | No | origin | The name of the remote to use for 'Push' and 'Pull'. |
Commit Message commit_message | textarea | No | — | The commit message. Required for 'Commit' operation. |
Username username | string | No | — | Optional Git username for HTTPS authentication. Leave empty to use SSH or the system credential helper. |
Access Token access_token | string | No | — | Optional Personal access token or app password for HTTPS authentication (GitHub, GitLab, Bitbucket, etc.). Takes priority over the system credential helper. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An execution signal. For 'Add', this can carry a list of file paths to add. Expects a standard data object with a 'value' that is a list of path strings. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | git_result | Emits a data object with details from the operation, like a commit hash or command status. |