From: Nicolas Mailhot Date: Thu, 01 Nov 2018 12:34:23 GMT Subject: Re: [RFE] Please add name and email to git credentials Message-ID: <6f3d8c49e1d44ab20d4169e5254364cba707f1af.camel@laposte.net> In-Reply-To: <87zhutjb3t.fsf@evledraar.gmail.com> Le jeudi 01 novembre 2018 à 12:22 +0100, Ævar Arnfjörð Bjarmason a écrit : > > Where would we get an E-Mail to lookup to pass to the helper? Are you > just asking that the helper git the result of $(git config user.name > && > git config user.email)? If so why can't it just look this up itself? 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 = doe4ever@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 [credential "https://gitlab.corp.com/"] username = jdoe56874 and drat, I've commited to XXX with the wrong name/email again -- Nicolas Mailhot