Information Technology Reference
In-Depth Information
11. Select SSH Public Keys from the menu at the left.
12. Select Add another public key, and paste the key into the Key box, as shown in Figure 14.19.
13. Select Add key.
The key is now installed.
NOTE
You can use the edit option to change your key later. This isn't usually a good idea, unless you start the key-making
process from scratch. If the key on your Mac doesn't match the key used by GitHub, you won't be able to access
your source code.
Setting up a Git username and e-mail
In addition to the key, Git and GitHub require a username and e-mail. These are unencrypted. Although you
can give each repository a separate contact name and e-mail, it's much simpler to set these globally for all repos-
itories. You need to make these settings only once.
FIGURE 14.19
Defining your public key
In Terminal, type the following:
git config --global user.name “<your name>”
git config --global user.email <your@emailaddress>
Search WWH ::




Custom Search