Re: [RFE] Please add name and email to git credentials
- From
- Nicolas Mailhot <nicolas.mailhot@laposte.net>
- Date
- Nov 1, 2018, 11:32 UTC
- Message-ID
- <b2895479becfa9213935804aceaf4881c49073e8.camel@laposte.net>
- In-Reply-To
- <6d8ef01ad9eb08d90cb9848eeaeabe6784b7b3e3.camel@laposte.net>
Le jeudi 01 novembre 2018 à 10:59 +0100, Nicolas Mailhot a écrit :
Show 6 quoted lines
> Hi, > > A dev persona is not just a username, please add email (and probably > also name) support to git credentials so the correct set for a repo > url > is automatically picked up by git
So, just in case it was not clear enough, allow things in .gitconfig like
[credential "https://pkgs.fedoraproject.org/"] username = doe4ever name = John Doe email = foo4ever@fedoraproject.org [credential "https://gitlab.corp.com/"] username = jdoe56874 name = John Doe, Snr Engineer email = john.doe@corp.com
Instead of just
[user] name = John Doe email = john.doe@corp.com [credential "https://pkgs.fedoraproject.org/"] username = doe4ever email = foo@fedoraproject.org [credential "https://gitlab.corp.com/"] username = jdoe56874
and drat, I've commited to XXX with the wrong name/email again
-- Nicolas Mailhot