3 ms·
Tell HN: Find anyone's email by adding .patch to end of a Git commit URL
I just discovered that if you add .patch to the end of a git commit URL, you're able to find the email address associated with the commit. This concerns me. Is there a best practice for obfuscating your email on git commits?
- lgierth 6y agoIt's the COMMITTER_EMAIL and AUTHOR_EMAIL as configured, this is working as intended. If you don't want to add it to your commits, set it to something like "nobody@localhost".
- radihuq 6y agoRight, its concerning as I never realized this was a feature. Updating my info now!
- git_configured 6y agoWait until the OP finds out about `git log`. You can have GitHub establish a proxy email for you - https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address#setting-your-commit-email-address-on-github https://docs.github.com/en/github/setting-up-and-managing-yo...
- radihuq 6y agoNice, thanks!