I have specified two email addresses in my GitHub account. Now I want to have the same in the command line so my commits are assigned to both email addresses. How is this possible?
Asked
Active
Viewed 182 times
1 Answers
0
You can edit ~/.gitconfig
file and add both of your email separated by ;
1. sudo vi ~/.gitconfig
2. name = UserName
email = email1@example.com;email2@example.com
3. Save the file.

Shravan40
- 8,922
- 6
- 28
- 48
-
-
I think this won't work because in the commit log in github, it does not show my name under my commits. – Mahdi Aug 03 '16 at 04:58