Re: How to avoid "Please tell me who you are..."?
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 2, 2017, 07:38 UTC
- Message-ID
- <CACBZZX4vEOD-4a-eK-uBxmFrb1GLSvJKxHW51whCSbCZdh7amQ@mail.gmail.com>
- In-Reply-To
- <xmqqy3tayi53.fsf@gitster.mtv.corp.google.com>
On Fri, Jun 2, 2017 at 9:15 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Jeffrey Walton <noloader@gmail.com> writes: > >> Is there no switch? Its the most efficient way to accomplish the task. > > This is a safety to help normal human users from hurting themselves, > and it does not make any sense to have "I have no name, so record > garbage, please" option, switch or setting that is different from > "Here is the name I want you to use when recording things". > > The switch _is_ to set the names with whatever standard way.
Presumably OP doesn't want to mess with the env for whatever reason, in that case:
git -c user.name=Nobody -c user.email=nobody@example.com cherry-pick <commit>