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

why does "man git-clean" not mention files ignored by core.excludesFile?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
May 21, 2018, 16:24 UTC
Message-ID
<alpine.LFD.2.21.1805211221180.18665@localhost.localdomain>
  sort of related to my previous post, but in "man git-clean", one
reads:
  -e <pattern>, --exclude=<pattern>
     In addition to those found in .gitignore (per directory)
     and $GIT_DIR/info/exclude, also consider these patterns to
     be in the set of the ignore rules in effect.
  -x
     Don’t use the standard ignore rules read from .gitignore
     (per directory) and $GIT_DIR/info/exclude, but do still use
     the ignore rules given with -e options. This allows
     removing all untracked files, including build products.
     This can be used (possibly in conjunction with git reset)
     to create a pristine working directory to test a clean
     build.
  why is there no mention of files ignored via a user's
core.excludesFile configuration? those sections seem sufficiently
comprehensive to list all of the other ways to ignore files, is there
a reason that that config setting is not mentioned?
rday
Next: Junio C Hamano
Message 1 of 2 in “why does "man git-clean" not mention files ignored by core.excludesFile?”
  1. Robert P. J. DayMay 21, 2018
  2. Junio C HamanoMay 22, 2018

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.