Which worktrees it lists
A linked worktree is a folder whose .git is a file pointing back to the main repository. Junk Raccoon lists one only when all of this is true:
- Clean:
git statusshows no changes. - Pushed: no commit exists only in this worktree; every commit is on a remote.
- Merged: its commit is part of
origin/HEAD,origin/main,origin/master,mainormaster.
Each row names the main repository, the branch, and when the worktree was last used.
Ignored files are checked too
git status does not show ignored files, so "clean and pushed" says nothing about a .env or local notes. Junk Raccoon looks at the ignored files. Build output and caches such as node_modules, target or .venv are fine. Anything else, like a .env, keeps the worktree listed but unticked, with the file named.
What happens when you clean
- The plan shows a box to tick: worktrees are removed with git's own tool, and Undo can't bring them back. Do it stays off until you tick it.
- Press Do it and the worktree folder goes to the Trash, then Junk Raccoon runs
git worktree prunein the main repository so git forgets the worktree. - Only merged, clean and pushed worktrees are listed, so the work itself is still on your remote.
Why it is not in the one tap by default
Old worktrees are "probably safe": ticked in their group, but added to the Overview's one tap only when you tick Also … that is probably safe. Clean worktrees in three clean-ups and Junk Raccoon learns to include them.
Cleaning old worktrees is part of the optional one-time Pro upgrade inside the app, with the developer leftovers; Free lists them with their size. Junk Raccoon itself is free: download it, no account and no ads.
Questions
How do I remove a git worktree?
git worktree remove, followed by the folder, removes the folder and git's record of it. If you already deleted the folder, git worktree prune cleans up the record.
What does git worktree prune do?
It removes git's records of worktrees whose folder no longer exists. It does not delete any folder or branch.
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac

