add
Stage files in a Git repository by specifying the repository path and file paths. Simplify Git workflows and prepare changes for commits efficiently.
Instructions
Add files to the git staging area.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
files | Yes | List of pathspecs to add | |
repoPath | Yes | Absolute path to the git repository |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"files": {
"description": "List of pathspecs to add",
"items": {
"type": "string"
},
"type": "array"
},
"repoPath": {
"description": "Absolute path to the git repository",
"type": "string"
}
},
"required": [
"repoPath",
"files"
],
"type": "object"
}