use_git
Initialise a Git repository in an R package and make the initial commit, optionally setting a custom commit message.
Instructions
Initialise a Git repository in the package and make an initial commit using usethis::use_git().
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": {
"project_path": "<project_path>"
},
"name": "use_git"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Message for the initial commit (default: 'Initial commit'). | |
| project_path | Yes | Absolute path to the root of the R package. |