git_add
Stage files for commit in Git repositories. Use this tool to prepare file changes for version control by adding them to the staging area before committing.
Instructions
Stage files for commit. Use "." to stage all changes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File(s) to stage. Use "." for all files | |
| cwd | No | Repository directory |
Input Schema (JSON Schema)
{
"properties": {
"cwd": {
"description": "Repository directory",
"type": "string"
},
"files": {
"description": "File(s) to stage. Use \".\" for all files",
"oneOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
}
},
"required": [
"files"
],
"type": "object"
}