Skip to content
Back to skills

For Tracked Files Use Git Rm

ASecurity

Sub-skill of repo-cleanup: For Tracked Files (Use git rm) (+2).

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
documentationgobashgit

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill for-tracked-files-use-git-rm --agent claude-code

Installs 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 with every re-scan.

Security grade badge for For Tracked Files Use Git Rm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-for-tracked-files-use-git-rm/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-for-tracked-files-use-git-rm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.