git_clone
Clone a Git repository into a specified directory with options for branch selection, shallow cloning, and custom destination paths.
Instructions
Clone a repository into a new directory
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Repository URL to clone | |
| destination | No | Destination directory (defaults to repo name) | |
| cwd | No | Directory to clone into | |
| branch | No | Specific branch to clone | |
| depth | No | Create shallow clone with depth |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"description": "Specific branch to clone",
"type": "string"
},
"cwd": {
"description": "Directory to clone into",
"type": "string"
},
"depth": {
"description": "Create shallow clone with depth",
"type": "number"
},
"destination": {
"description": "Destination directory (defaults to repo name)",
"type": "string"
},
"url": {
"description": "Repository URL to clone",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}