{"thread":{"id":"12516","subject":"How to force explicit user info","startedAt":"2008-03-05T13:39:20Z","lastAt":"2008-03-05T14:48:18Z","messageCount":5,"participants":["Santi Béjar","Jakub Narebski","Daniel Barkalow"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"71070","messageId":"8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com","threadId":"12516","inReplyTo":null,"subject":"How to force explicit user info","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2008-03-05T13:39:20Z","receivedAt":"2008-03-05T13:39:20Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"Hi  *,\n\n\n  how can I forbid the gecos info and always force git to ask for an\nexplicit user.name and user.email?\n\n  I use a different email for personal projects and for work projects,\nusing the same machine. So I set user.email locally in each\nrepository. But when I forget setting this I get\nuserid@hostname.(none) as the email. Is there a way to just die and\nask for this info (maybe user.AlwaysExplicit or something like that)?\n\n  Thanks\n\n  Santi\n"},{"id":"71077","messageId":"m3r6epgrqt.fsf@localhost.localdomain","threadId":"12516","inReplyTo":"8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com","subject":"Re: How to force explicit user info","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-03-05T14:38:43Z","receivedAt":"2008-03-05T14:38:43Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Santi Béjar\" <sbejar@gmail.com> writes:\n\n>   How can I forbid the gecos info and always force git to ask for an\n> explicit user.name and user.email?\n> \n>   I use a different email for personal projects and for work projects,\n> using the same machine. So I set user.email locally in each\n> repository. But when I forget setting this I get\n> userid@hostname.(none) as the email. Is there a way to just die and\n> ask for this info (maybe user.AlwaysExplicit or something like that)?\n\nI don't think there is a way to get exactly what you want... unless\nyou would \"scratch that itch\"... :-)\n\nYou can set default user.name and user.email in the ~/.gitconfig\nglobal (user) git configuration, and in /etc/gitconfig for system-wide\ngit config, though. HTH.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"71078","messageId":"alpine.LNX.1.00.0803050943070.19665@iabervon.org","threadId":"12516","inReplyTo":"8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com","subject":"Re: How to force explicit user info","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2008-03-05T14:45:25Z","receivedAt":"2008-03-05T14:45:25Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Wed, 5 Mar 2008, Santi Béjar wrote:\n\n> Hi  *,\n> \n> \n>   how can I forbid the gecos info and always force git to ask for an\n> explicit user.name and user.email?\n> \n>   I use a different email for personal projects and for work projects,\n> using the same machine. So I set user.email locally in each\n> repository. But when I forget setting this I get\n> userid@hostname.(none) as the email. Is there a way to just die and\n> ask for this info (maybe user.AlwaysExplicit or something like that)?\n\nIt doesn't work now, but I think a global:\n\n[user]\n\tname\n\nCould usefully be made to disable the default.\n\n\t-Daniel\n*This .sig left intentionally blank*"},{"id":"71079","messageId":"8aa486160803050646m1dcceaf7y702dca453068f073@mail.gmail.com","threadId":"12516","inReplyTo":"m3r6epgrqt.fsf@localhost.localdomain","subject":"Re: How to force explicit user info","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2008-03-05T14:46:26Z","receivedAt":"2008-03-05T14:46:26Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"On Wed, Mar 5, 2008 at 3:38 PM, Jakub Narebski <jnareb@gmail.com> wrote:\n>\n> \"Santi Béjar\" <sbejar@gmail.com> writes:\n>\n>  >   How can I forbid the gecos info and always force git to ask for an\n>  > explicit user.name and user.email?\n>  >\n>  >   I use a different email for personal projects and for work projects,\n>  > using the same machine. So I set user.email locally in each\n>  > repository. But when I forget setting this I get\n>  > userid@hostname.(none) as the email. Is there a way to just die and\n>  > ask for this info (maybe user.AlwaysExplicit or something like that)?\n>\n>  I don't think there is a way to get exactly what you want... unless\n>  you would \"scratch that itch\"... :-)\n\nYes, I'll add this to my todo.\n\n>\n>  You can set default user.name and user.email in the ~/.gitconfig\n>  global (user) git configuration, and in /etc/gitconfig for system-wide\n>  git config, though. HTH.\n\nBut I don't want a default user.{name,email}.\n\nSanti\n\n\n\n\n>\n>  --\n>  Jakub Narebski\n>  Poland\n>  ShadeHawk on #git\n>\n"},{"id":"71081","messageId":"8aa486160803050648v2fe2bfwb0711e81b162cba3@mail.gmail.com","threadId":"12516","inReplyTo":"alpine.LNX.1.00.0803050943070.19665@iabervon.org","subject":"Re: How to force explicit user info","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2008-03-05T14:48:18Z","receivedAt":"2008-03-05T14:48:18Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"On Wed, Mar 5, 2008 at 3:45 PM, Daniel Barkalow <barkalow@iabervon.org> wrote:\n>\n> On Wed, 5 Mar 2008, Santi Béjar wrote:\n>\n>  > Hi  *,\n>  >\n>  >\n>  >   how can I forbid the gecos info and always force git to ask for an\n>  > explicit user.name and user.email?\n>  >\n>  >   I use a different email for personal projects and for work projects,\n>  > using the same machine. So I set user.email locally in each\n>  > repository. But when I forget setting this I get\n>  > userid@hostname.(none) as the email. Is there a way to just die and\n>  > ask for this info (maybe user.AlwaysExplicit or something like that)?\n>\n>  It doesn't work now, but I think a global:\n>\n>  [user]\n>         name\n>\n>  Could usefully be made to disable the default.\n>\n\nYes, in fact I tried it. I think it makes sense as a way to disable\nthe default name, instead of another config option.\n\nSanti\n"}]}