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

Re: ~/.git/config ?

From
THTimo Hirvonen <tihirvon@gmail.com>
Date
May 26, 2006, 16:33 UTC
Message-ID
<20060526193325.d2a530a4.tihirvon@gmail.com>
In-Reply-To
<20060526152837.GQ23852@progsoc.uts.edu.au>
Anand Kumria <wildfire@progsoc.uts.edu.au> wrote:
Show 18 quoted lines
> Hi,
> 
> git is unable to construct a reasonable default email address in my
> current environment.  So, I use GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL
> to override things.
> 
> This has worked well but, now, I need to vary the email address for some
> repositories.  Unfortunately the environment variables override
> .git/config.
> 
> It would be good if things were like:
> 	- try to construct one automagically
> 	- use ~/.git/config (if available)
> 	- use .git/config
> 	- use environment variables
> 
> That way I could set my default email address in ~/.git/config and
> override it as required for those repositories that need it.

I backup my $HOME using git, so there's a .git directory in ~. I don't think a global config file is really needed but it would be nice if .git/config would override the environment variables, not the other way around.

-- 
http://onion.dynserv.net/~timo/
Previous: Anand KumriaNext: Jakub Narebski
Message 2 of 19 in “~/.git/config ?”
  1. Anand KumriaMay 26, 2006
  2. Timo HirvonenMay 26, 2006
  3. Jakub NarebskiMay 26, 2006
  4. Petr BaudisMay 26, 2006
  5. Timo HirvonenMay 26, 2006
  6. Petr BaudisMay 26, 2006
  7. Pavel RoskinMay 27, 2006
  8. Petr BaudisMay 27, 2006
  9. Linus TorvaldsMay 27, 2006
  10. Linus TorvaldsMay 27, 2006
  11. Junio C HamanoMay 27, 2006
  12. Jakub NarebskiMay 27, 2006
  13. Junio C HamanoMay 27, 2006
  14. Nikolai WeibullMay 27, 2006
  15. Timo HirvonenMay 27, 2006
  16. Junio C HamanoMay 26, 2006
  17. Read configuration also from ~/.gitrcPetr Baudis, May 28, 2006
  18. Johannes SchindelinMay 29, 2006
  19. Jakub NarebskiMay 29, 2006

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.