4 ms·
I wonder why emails on commits was ever mandated, instead of just the username. At least they didn't demand a phone number and address, the dimwits.
by moffkalast 5y ago
I wonder why emails on commits was ever mandated, instead of just the username. At least they didn't demand a phone number and address, the dimwits.
- remram 5y agoGit was created with a mailing-list workflow in mind, e.g. the way the Linux kernel works. That's why we have git format-patch, git am, git send-email, and that's why there is an email field in commit authorship metadata. You can always put something else there (e.g. GitHub's anonymized addresses) or leave it empty.
- encryptluks2 5y agoGitHub uses it to associate signed commits with your user. Not sure why they can't just verify the GPG key on your account though. I think it is fair to say to them the more personal data you share the better.
- forgotpwd16 5y agoGitHub allows you to use username@users.noreply.github.com as commit email and even has an option to block push commits utilizing your actual email.
- encryptluks2 5y agoYes, but they shouldn't need any email for commits.
- unfunco 5y agoThey're not mandated by Git, you can do: git commit --author "moffkalast <>"
- moffkalast 5y agoSo I can set up my global --user.email as <> and that'll work without breaking things on the upstream?
- isbvhodnvemrwvn 5y agoWhy would it? It's just some metadata, arbitrary text as far as any git client is considered.
- moffkalast 5y agoAh neat, will try and see what happens :D