git-repo-cleanup

Community

Isolate nested repos to keep your git clean.

AuthorZHLX2005
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Nested git repositories cloned into project directories often pollute the main repository in git's index, leading to dirty status and accidental commits.

Core Features & Use Cases

  • Detect nested repositories within project folders (e.g., .claude/repo/) that would otherwise be tracked or modified by git.
  • Add rules to .gitignore to prevent nested repos from being added to the index.
  • Safely remove already-tracked nested repos using git rm --cached -r and verify a clean working tree.

Quick Start

Add .claude/repo/ to your .gitignore and remove it from git tracking to isolate cloned repositories.

Dependency Matrix

Required Modules

None required

Components

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: git-repo-cleanup
Download link: https://github.com/ZHLX2005/fr/archive/main.zip#git-repo-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.