gitignore-subdirectory-exception
OfficialOverride root ignore rules to track a subdirectory.
Authorshiftrepo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Root or global .gitignore files can exclude entire folders (for example data/), preventing tracking of important subdirectories within a project. This Skill shows how to retain selective tracking for a subdirectory by applying project-specific negation rules.
Core Features & Use Cases
- Create a project-specific .gitignore to override root exclusions using negation patterns like !data/ and !data/**
- Apply the technique within multi-project repositories to selectively track subdirectories while keeping the global ignore intact
- Provide a simple, repeatable workflow for enabling version control on targeted folders without affecting other ignored paths
Quick Start
Create a project-specific .gitignore that negates the root ignore rules to track a subdirectory, then commit and push.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: gitignore-subdirectory-exception Download link: https://github.com/shiftrepo/aws/archive/main.zip#gitignore-subdirectory-exception 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.