# Git Clone Repo

> Clone a git repository with branch selection and shallow clone support

- Skill: `jadegate/git-clone-repo` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add jadegate/git-clone-repo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jadegate/git-clone-repo/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jadegate (https://skillmd.com/u/jadegate)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jadegate/git-clone-repo

---


# Git Clone Repository

Clone a git repository with branch selection and shallow clone support

## When to Use

- User wants to git clone
- User wants to clone repo
- Keywords: git, clone, vcs, repository

## Required Parameters

- **repo_url** (string): Git repository HTTPS URL
- **target_dir** (string): Local target directory

## Output

- **success** (boolean): Clone success
- **path** (string): Cloned path
- **commit_hash** (string): HEAD commit

## Security

- Sandbox level: standard
- Max execution time: 180000ms
- Network whitelist: github.com, gitlab.com, bitbucket.org
- JadeGate verified: Yes (5-layer security check passed)

## Execution Flow

Entry: `validate_url` -> 6 steps -> Exit: `ret_ok`, `ret_fail`

