Re: /etc/git/
- From
- Alejandro 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/>