cloning-subdirectories-with-git
CommunityClone only what you need from a Git repo.
Authorlucasgaldinos
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Git typically clones an entire repository, which wastes bandwidth and time when only a subdirectory or single file is required. This skill provides reliable strategies to fetch just the needed portion without cloning the whole history.
Core Features & Use Cases
- Sparse Checkout: progressively check out only the specified paths while keeping full Git history for updates.
- Git Archive: download a snapshot of a subdirectory when history and Git metadata are not needed.
- Partial Clone: minimize initial data transfer for large repos while retaining Git functionality.
- Use Case: clone a docs/ folder from a large monorepo, or fetch a single file without pulling everything.
Quick Start
Choose the method that best fits your needs and follow the outlined steps to target a subdirectory or file in the remote repository.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cloning-subdirectories-with-git Download link: https://github.com/lucasgaldinos/my-skills/archive/main.zip#cloning-subdirectories-with-git Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.