If I run git config --get user.email
, it displays my current email address. Is it possible to configure git such that I can set a value of the email for a commit, but it won't display it with the --get
switch?
Alternatively, can I just set an environment variable such that git config --get user.email
won't get anything, but my commits will still have my email? Or can my commits use a unique identifier other than my email address?
I had a brief look at the git-config documentation page, looking for mentions of --get
and "email". The environment variables look promising but I haven't tried them.
Related question: Why does git ask for users' email address?