git_init
Initialize a new Git repository at a specified path, creating its .git directory and configuring the initial branch or bare setup.
Instructions
Initialize a new Git repository. Creates a .git directory and sets up the repository structure.
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": {
"path": "<path>"
},
"name": "git_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bare | No | Create a bare repository (default: false) | |
| path | Yes | Path where the repository should be initialized | |
| initialBranch | No | Name of the initial branch (default: 'main') |