1

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?

Mahdi
  • 1,871
  • 2
  • 24
  • 41

1 Answers1

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