Http://www.jianshu.com/p/d1420a4e1a87
Install Git
Before you start using Git, you need to install it on your computer. Even if it is already installed, it is best to upgrade it to the latest version. You can install through the package or other installer, or download the source code to compile the installation.
Official: https://git-scm.com/downloads/
Once the download is complete, double-click as normal software. DMG opens and double-clicks the. Pkg for installation.
Configuring SSH
1th step: view. SSH home Directory
Open terminal, enter command
cd ~/.ssh
2nd step: Create SSH Key.
In the user home directory, see if there is no. ssh directory, if there is, then look at this directory there are no id_rsa
and id_rsa.pub
these two files, if already have, you can skip to the next step. If not, create an SSH Key:
ssh-keygen -t rsa -C [email protected]
Git for Mac Installation