Sub-skill of repo-cleanup: For Tracked Files (Use git rm) (+2).
Scanned 9/9/2026
Install to Claude Code
npx -y skills add vamseeachanta/workspace-hub --skill for-tracked-files-use-git-rm --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of For Tracked Files Use Git Rm?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-for-tracked-files-use-git-rm)More formats (shields.io, HTML) on the badges page.
---
name: repo-cleanup-for-tracked-files-use-git-rm
description: 'Sub-skill of repo-cleanup: For Tracked Files (Use git rm) (+2).'
version: 2.2.0
category: _internal
type: reference
scripts_exempt: true
---
# For Tracked Files (Use git rm) (+2)
## For Tracked Files (Use git rm)
```bash
# Remove tracked file
git rm path/to/file
# Remove tracked directory
git rm -r path/to/directory
# Remove from git but keep local copy
git rm --cached path/to/file
```
## For Untracked Files (Use rm)
```bash
# Remove untracked file
rm path/to/file
# Remove untracked directory
rm -rf path/to/directory
# Interactive removal (safer)
rm -i path/to/file
```
## Dry Run First
```bash
# Preview what would be deleted
git clean -n -d
# Preview including ignored files
git clean -n -d -x
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Understand the components, mechanics, and constraints of context in agent systems. Use when designing agent architectures, debugging context-related failures, or optimizing context usage.