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

Re: How to force explicit user info

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Mar 5, 2008, 14:45 UTC
Message-ID
<alpine.LNX.1.00.0803050943070.19665@iabervon.org>
In-Reply-To
<8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com>
On Wed, 5 Mar 2008, Santi Béjar wrote:
Show 11 quoted lines
> 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.
	-Daniel
*This .sig left intentionally blank*
Previous: Santi BéjarNext: Santi Béjar
Message 4 of 5 in “How to force explicit user info”
  1. Santi BéjarMar 5, 2008
  2. Jakub NarebskiMar 5, 2008
  3. Santi BéjarMar 5, 2008
  4. Daniel BarkalowMar 5, 2008
  5. Santi BéjarMar 5, 2008

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.