Git Stage
Stages file changes in the working directory for the next commit (git add).
Inputs#
| Port | Description |
|---|---|
invalid port type: git-repo Repository |
The repository to stage changes in. |
| A list of file paths or glob patterns to stage. Use '.' to stage all changes. |
Outputs#
| Port | Description |
|---|---|
| Executes if all specified paths are staged successfully. | |
| Executes if an error occurs, e.g., invalid path or repository access failure. |
Addendum#
This node adds file contents to the index (the staging area). You can provide specific file paths or glob patterns to define what should be staged.
The repo input must be connected to the output of a git-clone or git-open node.
Common Patterns#
- To stage all changes in the repository, provide a single path:
. - To stage all
.gofiles in thesrcdirectory:src/**/*.go
ID: core/git-stage@v1