Git Clone
git_cloneClone Git repositories from remote URLs to local paths via HTTP, HTTPS, or SSH. Supports shallow cloning, specific branches, and bare mirrors.
Instructions
Clone a repository from a remote URL to a local path. Supports HTTP/HTTPS and SSH URLs, with optional shallow cloning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Remote repository URL to clone from. | |
| localPath | Yes | Local path where the repository should be cloned. | |
| branch | No | Specific branch to clone (defaults to remote HEAD). | |
| depth | No | Create a shallow clone with history truncated to N commits. | |
| bare | No | Create a bare repository (no working directory). | |
| mirror | No | Create a mirror clone (implies bare). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| remoteUrl | Yes | The remote URL that was cloned. | |
| localPath | Yes | Local path where repository was cloned. | |
| branch | Yes | The branch that was checked out. | |
| commitHash | No | Current HEAD commit hash. |