git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clean ignore

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Feb 7, 2026, 15:00 UTC
Message-ID
<c5d1faf0-a7ea-4be0-b9eb-3bcb5f1ae0a2@app.fastmail.com>
In-Reply-To
<CADjtP1FSAQZRyBCjPZ00Y2g=fdtRZWHP44XLqjor-OrYXAN-vw@mail.gmail.com>
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
Previous: Sylvain RabotNext: D. Ben Knoble
Message 2 of 3 in “git clean ignore”
  1. Sylvain RabotFeb 7, 2026
  2. Kristoffer HaugsbakkFeb 7, 2026
  3. D. Ben KnobleFeb 8, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.