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

Re: /etc/git/

From
ACAlejandro Colomar <alx@kernel.org>
Date
Dec 26, 2024, 20:41 UTC
Message-ID
<brgripo67yq43wzti5tpsxqezwfrurt2qpaiugnxuuksjvmmab@eeugej54ncxm>
In-Reply-To
<015f01db57ba$7c9e14f0$75da3ed0$@nexbridge.com>
Hi Randall,
On Thu, Dec 26, 2024 at 12:20:34PM -0500, rsbecker@nexbridge.com wrote:
Show 7 quoted lines
> On December 26, 2024 12:11 PM, Alejandro Colomar wrote:
> >I'd like to have all system-wide configuration under a single directory.
> >What do you think of adding /etc/git/, and reading a 'config', 'ignore', and
> >'attributes' files from there?  /etc/gitconfig and /etc/gitattributes isn't very clean.
> 
> Have a look at GIT_CONFIG_SYSTEM documented in https://git-scm.com/docs/git
> and let us know whether this might work for you.

That's a workaround, which would involve appending some line in /etc/bash.bashrc or somewhere similar. In the end, the git configuration would be spread and unorganized, just in a different way. In fact, I think I prefer having several /etc/gitsomething files than having a dir and then having to clutter the system-wide bashrc.

So, I prefer /etc/gitconfig over /etc/git/config + GIT_CONFIG_SYSTEM, but I prefer /etc/git/config over both.

Have a lovely night! Alex

> 
> --Randall
> 
-- 
<https://www.alejandro-colomar.es/>
Previous: rsbecker@nexbridge.comNext: rsbecker@nexbridge.com
Message 3 of 5 in “/etc/git/”
  1. Alejandro ColomarDec 26, 2024
  2. rsbecker@nexbridge.comDec 26, 2024
  3. Alejandro ColomarDec 26, 2024
  4. rsbecker@nexbridge.comDec 26, 2024
  5. Alejandro ColomarDec 31, 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.