git_add_or_commit
Stage file changes to the index or commit them with a message. Specify directory, optional files, and action to perform.
Instructions
Add file contents to the index (git add ) OR record changes to the repository (git commit -m [files...]). Use the 'action' parameter to specify which action to perform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The action to perform: 'add' or 'commit' | |
| directory | Yes | The directory to run git add or commit in | |
| files | No | Optional array of files to add or commit. If omitted, all files are added or all staged changes are committed. | |
| message | No | The commit message (required if action is 'commit') |