git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Question: Setting the Email Address in ~/.gitconfig

From
Aaron Schrab <aaron@schrab.com>
Date
Jun 13, 2020, 00:16 UTC
Message-ID
<20200613001654.GA190001@pug.qqx.org>
In-Reply-To
<20200611225216.GZ6569@camp.crustytoothpaste.net>
At 22:52 +0000 11 Jun 2020, "brian m. carlson" <sandals@crustytoothpaste.net> wrote:
Show 11 quoted lines
>On 2020-06-11 at 21:25:45, Shreya Malviya wrote:
>> My question:
>> It would be much easier if git didn't allow changing the email address
>> so easily. Why hasn't git implemented OAuth, or something of that
>> sort, for every time that the email address is changed in
>> ~/.gitconfig, yet?
>
>This is a local configuration file, so asking someone to implement OAuth
>to change a local configuration file wouldn't be helpful.  Many Git
>servers are, for example, SSH only, and so OAuth isn't even a
>possibility.

Beyond that, even if git *did* somehow provide strong authentication of the configured email address for commits, it's open source software so people could still quite easily disable that authentication to spoof commits as other people. They could also use some other software (possibly that they write themselves) that manipulates a repository without doing that authentication.

While the data is entirely on an untrusted system (however you want to define trusted), the operator of that system will always be able to manipulate that data.

The alternative to this would be to require all commits to be cryptographically signed. But, most projects consider that to be too much of a burden. After all that only covers who made the changes, while for many things the content of the changes is much more important.

Previous: brian m. carlson
Message 3 of 3 in “Question: Setting the Email Address in ~/.gitconfig”
  1. Shreya MalviyaJun 11, 2020
  2. brian m. carlsonJun 11, 2020
  3. Aaron SchrabJun 13, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.