Re: ~/.git/config ?
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 26, 2006, 17:38 UTC
- Message-ID
- <7vversk7o4.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060526152837.GQ23852@progsoc.uts.edu.au>
Anand Kumria <wildfire@progsoc.uts.edu.au> writes:
Show 8 quoted lines
> 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.
If you mean by the above "do all of these and take the last value that was available", that sounds sane. Except perhaps I would suggest to use ~/.git-config instead. Some people seem to want to track their home directory with git, and that way, your personal fallback default file can be version controlled.