pull down to refresh

your git config "leaks" your email address.

I'm not a fan of pretending that an email address is personal information, however, you might consider making a config adjustment[1] similar to metadata created by commits done through the github website, and then only setting user.name and user.email manually in specific checkouts when you wish that information shared.

  1. for example, git config --global user.name jasonb && git config --global user.email ttooccooll@users.noreply.github.com, so you don't forget your SN username now being linked publicly

You’re stretching my understanding of git (which is good). Is this my email being stored in the git folder of each of my repos or is this my email stored upfront in my account in a way people can see? I guess I'm asking if that’s a config adjustment I make to my whole GitHub account or to each of my repos? Kind of guessing I’m doxed either way, but I don’t want to make it too easy if I can help it.

reply
28 sats \ 1 reply \ @adlai 6h

github doesn't usually show it on the website; however, the configured values for each commit do appear in the raw objects of the .git directory, of any clone:

try git cat-file commit HEAD

it's possible to "rewrite history"[1] after changing the global configs, so that these are updated in each commit, although that will change the commit IDs, which are hash roots of the commit files. if you don't require the granular history for git bisect debugging, then just rm -rf .git && git init will get rid of all the old metadata.

  1. see Rewriting History and specifically _the_nuclear_option_filter_branch

reply

Thanks! Looks like I’ve got some updating to get to.

reply