untrack
Stop tracking ignored files without deleting them from disk.
Usage
git-wrangler untrack [options]Quick start
git-wrangler untrack
What it does
untrack finds files that are already tracked but now match .gitignore. It previews affected repositories, asks once, and removes the files from Git tracking.
The files remain on disk. Their removals are left staged so you can review and commit them.
Options
| Option | Default | What it does |
|---|---|---|
--repo <path> |
Whole workspace | Update exactly one repository. |
--yes, -y |
Off | Skip the confirmation after the preview. |
--guided |
Off | Choose options through prompts. |
Repositories without .gitignore or without matching tracked files are skipped.
Related commands
- Use
fix-gitignoreto add useful ignore rules first. - Use
committo commit the staged removals.