Download https://code.google.com/p/git-osx-installer/First
Install the console input git--version to see if it is installed
Generate SSH Key
Ssh-keygen-t rsa-c "Your_email"
Carriage return will appear
Generating public/private RSA key pair.
Enter file in which to save the key (/USERS/QIFENG/.SSH/ID_RSA): shinit_test
Enter passphrase (empty for no passphrase):
If the password is set, do not set it to enter
Your identification have been saved in Shinit_test.
Your public key had been saved in Shinit_test.pub.
Build completed, run the current directory of the command, native generated under home directory
Then add the private key
Ssh-add Shinit_test
Log on to GitHub add a key as a string in the Shinit_test.pub file
Test connection
SSH [email protected]
The authenticity of host ' github.com (192.30.252.129) ' can ' t be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Is you sure want to continue connecting (yes/no)? Yes
warning:permanently added ' github.com,192.30.252.129 ' (RSA) to the list of known hosts.
Connection to github.com closed.
MAC OSX installs Git