Re: How to force explicit user info
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 5, 2008, 14:38 UTC
- Message-ID
- <m3r6epgrqt.fsf@localhost.localdomain>
- In-Reply-To
- <8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com>
"Santi Béjar" <sbejar@gmail.com> writes:
Show 8 quoted lines
> How can I forbid the gecos info and always force git to ask for an > explicit user.name and user.email? > > I use a different email for personal projects and for work projects, > using the same machine. So I set user.email locally in each > repository. But when I forget setting this I get > userid@hostname.(none) as the email. Is there a way to just die and > ask for this info (maybe user.AlwaysExplicit or something like that)?
I don't think there is a way to get exactly what you want... unless you would "scratch that itch"... :-)
You can set default user.name and user.email in the ~/.gitconfig global (user) git configuration, and in /etc/gitconfig for system-wide git config, though. HTH.
-- Jakub Narebski Poland ShadeHawk on #git