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

git clean --exclude broken?

From
HKHomyee King <homyeeking@gmail.com>
Date
Nov 24, 2024, 11:10 UTC
Message-ID
<1A13EB2A-6075-4CA9-855E-B72ACDA67C0C@gmail.com>
13 years ago, Todd Rinaldo found that —exclude option is not works with any options, for example, `git clean -Xd -e=foo` to clean the files/folders respect the .gitignore rule except the foo, but in real world, git only respect the git ignore standard rule and not work with -e option.
Today, 13 years later, the problem still exist, so I wonder is this a bug or should we clarify the “correct” usage of exclude in documentation, because it’s really confusing.
The discussion can be viewed by this link: https://git.vger.kernel.narkive.com/ulppacPK/clean-exclude-broken
Looking forward to your reaply!
Next: brian m. carlson
Message 1 of 4 in “git clean --exclude broken?”
  1. Homyee KingNov 24, 2024
  2. brian m. carlsonNov 24, 2024
  3. brian m. carlsonNov 28, 2024
  4. brian m. carlsonDec 10, 2024

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.