zhaofdeMBP:~ root# git git version xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
点选最右边的安装就好，(注：安装很快，并不是安装整个xcode)。终端输入 which git 可查看git的安装目录。
zhaofdeMBP:~ root# which -a git /usr/local/bin/git /usr/bin/git
zhaofdeMBP:~ root# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/root/.ssh/id_rsa.
Your public key has been saved in /var/root/.ssh/id_rsa.pub.
The key fingerprint is: SHA256:i3T9g45wjV3cDOO28jEk2s3ZP1ONNSt1x7Bo5MZDpRg root@zhaofdeMBP
The key's randomart image is:
| E+... OX|
| .o+. o=+*oB|
| + ..ooooo+|
| . S .. o.o|
| o . . = |
| + . . .|
| . . |
zhaofdeMBP:v3-common root# git status
On branch develop Your branch is up-to-date with 'origin/develop'.
nothing to commit, working tree clean
zhaofdeMBP:v3-common root# git pull origin develop
From 192.168.1.248:moresing/v3-common * branch develop -> FETCH_HEAD