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

Re: Add a way to disable «git clean» per repo

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 3, 2023, 17:36 UTC
Message-ID
<xmqq355g6f6u.fsf@gitster.g>
In-Reply-To
<ZCiZCM+AAUnjp4Ml@thunder.hadrons.org>
Guillem Jover <guillem@hadrons.org> writes:
> Accidentally running «git clean -xdf» or «git clean -Xdf» might be
> catastrophic there.

So would accidentally running "rm -fr" there be catastrophic, too. I doubt it would make much sense to file a feature request to Debian or GNU/FSF to disable "rm -r" in certain directories. I am not sure why "git clean" should be any different.

Commands like "git clean" require "-f" before they become overly destructuve for a reason. clean.requireForce defaults to true for the same reason.

Previous: Guillem JoverNext: Guillem Jover
Message 2 of 4 in “Add a way to disable «git clean» per repo”
  1. Guillem JoverApr 1, 2023
  2. Junio C HamanoApr 3, 2023
  3. Guillem JoverApr 9, 2023
  4. Thomas GuyotApr 10, 2023

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.