git_core
Perform core Git operations to check status, review logs and diffs, initialize or clone repositories, stage and commit files, then push, pull, or fetch changes.
Instructions
Git core operations — status, log, diff, show, init, clone, add, commit, push, pull, fetch.
Core workflow tools. For branch/tag/stash operations use git_branch. For remote/reset/clean/submodule/bisect/worktree use git_admin. Force-push/pull/fetch/clone need confirm=True + confirm_token (red-shelf gate). push accepts tag_name to push a single tag (git push tag <tag_name>).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "git_core"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amend | No | ||
| depth | No | ||
| files | No | ||
| force | No | ||
| branch | No | ||
| commit | No | ||
| remote | No | origin | |
| commit2 | No | ||
| confirm | No | ||
| message | No | ||
| oneline | No | ||
| repo_url | No | ||
| tag_name | No | ||
| all_files | No | ||
| file_path | No | ||
| max_count | No | ||
| operation | Yes | ||
| repo_path | No | ||
| target_dir | No | ||
| set_upstream | No | ||
| confirm_token | No | ||
| initial_branch | No | main |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||