Connecting Your Git and GitHub

To configure your Git and GitHub accounts to connect, run these two lines in your terminal:

The second key is user.email, not user.mail; Git ignores anything else. Without an email set, Git on a Mac commits under an address it makes up from your username and computer name, and prints a warning.

Then run a third line:

This tells git pull to merge when your copy and the copy on GitHub have both changed, where Git would otherwise stop and ask you to choose how to combine them.

You may need to authenticate your account using the instructions from the previous page.