From: Jakub Narebski <jnareb@gmail.com>
To: "Santi Béjar" <sbejar@gmail.com>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: How to force explicit user info
Date: Wed, 05 Mar 2008 06:38:43 -0800 (PST) [thread overview]
Message-ID: <m3r6epgrqt.fsf@localhost.localdomain> (raw)
In-Reply-To: <8aa486160803050539p4c443302nc322241d59fe9374@mail.gmail.com>
"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"... :-)
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
next prev parent reply other threads:[~2008-03-05 14:39 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 [this message]
2008-03-05 14:46 ` Santi Béjar
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=m3r6epgrqt.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=sbejar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.