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

Does "git config --local core.excludefiles" exclude files in a single repository?

From
MMMatt Seitz (matseitz) <matseitz@cisco.com>
Date
Jun 29, 2012, 18:11 UTC
Message-ID
<A0DB01D693D8EF439496BC8B037A0AEF02C738@xmb-rcd-x15.cisco.com>
Will git ignore files in an exclusion file that is specified in a local ($GIT_DIR/config) "core.excludefiles" configuration option?
I mistakenly ran "git config core.excludefiles=<file>", and I was curious whether this command actually has any effect.
I know that "$GIT_DIR/info/exclude" is normally used for listing files that a single user wants exclude from a single repository.  And I know that "git config --global core.excludefiles=<file>" is normally used for listing files that a single user wants to exclude from all repositories.  But I didn't see any explicit documentation for whether "git config core.excludefiles=<file>" would exclude files for a single user in a single repository.
Next: Jeff King
Message 1 of 2 in “Does "git config --local core.excludefiles" exclude files in a single repository?”
  1. Matt Seitz (matseitz)Jun 29, 2012
  2. Jeff KingJul 3, 2012

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.