Re: /etc/git/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Randall,

On Thu, Dec 26, 2024 at 12:20:34PM -0500, rsbecker@xxxxxxxxxxxxx wrote:
> 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/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux