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

[Question] etc/gitconfig and .gitconfig missing errors

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Jan 11, 2025, 15:07 UTC
Message-ID
<021501db643a$9c5357b0$d4fa0710$@nexbridge.com>
Hi All,

Question from my community. The standard git install does not automatically create the /usr/local/etc directory if it does not exist, so the git config --system fails. If etc/gitconfig is missing, the command also fails. Similarly, if ~/.gitconfig is missing, git config -global fails.

Is this intended? I have been telling my people that they should pre-create those files with appropriate security. I have mused that having git auto-create this file may introduce potential CVEs, explaining the situation. Is this assumption correct?

Thanks, Randall

-- Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400) NonStop(211288444200000000) -- In real life, I talk too much.

Next: Jeff King
Message 1 of 2 in “[Question] etc/gitconfig and .gitconfig missing errors”
  1. rsbecker@nexbridge.comJan 11, 2025
  2. Jeff KingJan 13, 2025

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.