git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Santi Béjar" <sbejar@gmail.com>
To: "Jakub Narebski" <jnareb@gmail.com>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: How to force explicit user info
Date: Wed, 5 Mar 2008 15:46:26 +0100	[thread overview]
Message-ID: <8aa486160803050646m1dcceaf7y702dca453068f073@mail.gmail.com> (raw)
In-Reply-To: <m3r6epgrqt.fsf@localhost.localdomain>

On Wed, Mar 5, 2008 at 3:38 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>
> "Santi Béjar" <sbejar@gmail.com> writes:
>
>  >   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"... :-)

Yes, I'll add this to my todo.

>
>  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.

But I don't want a default user.{name,email}.

Santi




>
>  --
>  Jakub Narebski
>  Poland
>  ShadeHawk on #git
>

  reply	other threads:[~2008-03-05 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-05 13:39 How to force explicit user info Santi Béjar
2008-03-05 14:38 ` Jakub Narebski
2008-03-05 14:46   ` Santi Béjar [this message]
2008-03-05 14:45 ` Daniel Barkalow
2008-03-05 14:48   ` Santi Béjar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8aa486160803050646m1dcceaf7y702dca453068f073@mail.gmail.com \
    --to=sbejar@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).