untrack

Stop tracking ignored files without deleting them from disk.

Usagegit-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.

  • Use fix-gitignore to add useful ignore rules first.
  • Use commit to commit the staged removals.