Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github account with multiple email: Web-based activity how to

Tags:

git

github

So, I am trying to find whether it is possible to configure more emails and not having a default public one to drive web-based activity but rather choose each time a web operation is done.

My problem is that I use the same account for personal (so far unfortunately few) projects and for companies one, and I would like to differentiate web-activity as I can do for local activity via .gitconfig.

Any idea whether it is possible to do something like that and in case how? Here my .gitconfig file

$ git config --global -l
user.name=Bla Bla
user.email=personal.or.company@email

Here my web configuration:

personal@email
company@email Primary Public

The 'Public' email is always used for web-based activity and the closest I can get to my goal is to flag Keep my email address private (it may work but it is not quite the same).

like image 263
ThanksForAllTheFish Avatar asked Jun 15 '26 23:06

ThanksForAllTheFish


1 Answers

Since May 2018, you now have:

Choose the author email for web-based commits

When making changes to files with the web-based editor, you can now choose which verified email with which to author the commit (previously you could only use your primary email).

If you have email privacy enabled, the commit will be authored with your private “noreply” email.

like image 58
VonC Avatar answered Jun 17 '26 13:06

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!