sparse-checkout
CommunityHide tracked files locally without .gitignore
Software Engineering#git#developer workflow#safety checks#sparse-checkout#local exclusions#working tree#restore hidden files
Authormthli
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill lets you hide teammates-committed files or directories from your local working tree without changing any tracked content or your team’s .gitignore rules.
Core Features & Use Cases
- Hide tracked paths locally: Removes specified tracked files from your working tree using git sparse-checkout so you can keep personal clutter out of view.
- Reversible restore: Brings hidden paths back on demand, or disables sparse-checkout entirely to restore everything.
- Safety guardrails: Refuses to hide when there are uncommitted changes to tracked files under the target path, preventing a half-applied state that could lead to silent loss of work.
- List current hidden state: Shows which paths are currently excluded in the per-clone sparse-checkout configuration.
Use case: teammates commit personal/generated output like .claude/ or dist/, but you want them hidden only on your machine while still leaving the repo intact for everyone else.
Quick Start
Ask to hide a path locally by running: python <skill-dir>/scripts/sparse_checkout.py hide .claude/
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 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: sparse-checkout Download link: https://github.com/mthli/skills/archive/main.zip#sparse-checkout 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.