Re: How to force explicit user info
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- Mar 5, 2008, 14:48 UTC
- Message-ID
- <8aa486160803050648v2fe2bfwb0711e81b162cba3@mail.gmail.com>
- In-Reply-To
- <alpine.LNX.1.00.0803050943070.19665@iabervon.org>
On Wed, Mar 5, 2008 at 3:45 PM, Daniel Barkalow <barkalow@iabervon.org> wrote:
Show 22 quoted lines
> > On Wed, 5 Mar 2008, Santi Béjar wrote: > > > Hi *, > > > > > > 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)? > > It doesn't work now, but I think a global: > > [user] > name > > Could usefully be made to disable the default. >
Yes, in fact I tried it. I think it makes sense as a way to disable the default name, instead of another config option.
Santi