Re: git clean ignore
On Sat, Feb 7, 2026, at 15:53, Sylvain Rabot wrote:
Show 9 quoted lines
> Hi,
>
> I'm a big user of git clean -fdx which is the shortest path to a clean worktree.
>
> However, I repeatedly found myself deleting precious git ignored
> resources such as editor/debug configurations so I asked myself if the
> git ignore mechanism could be applied to git clean so that we can
> declare a list of patterns git clean should never remove.
>[snip]
Related: https://lore.kernel.org/git/pull.1627.git.1703643931314.gitgitgadget@gmail.com/T/#u