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

Re: Configuring the location of ~/.gitconfig

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 27, 2012, 17:16 UTC
Message-ID
<7vzk4bqtd1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAD1m08Wz7WqP8Yxgc6xuhBSntQ0PS6hGOzHWrcd0VAbARmkuUA@mail.gmail.com>
Anurag Priyam <anurag08priyam@gmail.com> writes:
Show 9 quoted lines
>> Not me. For that particular use case, my approach (long before I
>> switched the vcs that controls my dotfiles to git) have always been
>> to have ~/src that is version controlled, with a Makefile that
>> builds/adjusts dotfiles appropriately for each box and installs them
>> in the proper place.
>
> Makefile is what I wanted to avoid when I suggested Ram that maybe Git
> could _optionally_ read the location of global gitconfig from an
> environment variable that can be exported in zshenv or bash_profile.

Where exactly do the "zshenv" and "bash_profile" you mention reside, and how are their contents kept up to date? I am guessing it is /net/srv1/home/ram/.bash_profile on machines that mount user home directories from srv1 NFS server and it is to have a string like "export GITCONFIG_FILE=/net/srv1/home/ram/dot/gitconfig" or on those machines. The contents of ~ram/dot/gitconfig may be able to stay the same across boxes, but how is ~ram/.bash_profile is set up? Manually?

Again, I am not personally interested; I think aversion of Make is the root cause of the disease.

Previous: Anurag Priyam
Message 14 of 14 in “Configuring the location of ~/.gitconfig”
  1. Ramkumar RamachandraSep 26, 2012
  2. David AguilarSep 26, 2012
  3. Ramkumar RamachandraSep 27, 2012
  4. config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfigRamkumar Ramachandra, Sep 27, 2012
  5. Matthieu MoySep 27, 2012
  6. Junio C HamanoSep 27, 2012
  7. Junio C HamanoSep 27, 2012
  8. Jeff KingSep 27, 2012
  9. Junio C HamanoSep 27, 2012
  10. Matthieu MoySep 27, 2012
  11. Ramkumar RamachandraSep 28, 2012
  12. Junio C HamanoSep 27, 2012
  13. Anurag PriyamSep 27, 2012
  14. Junio C HamanoSep 27, 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.