Gitの設置・配置

1341 ワード

>Githubアカウントを申請する
http://jingyan.baidu.com/article/455a9950abe0ada167277864.html
>Mac本機の上にGitを取り付けるbrew install git>SSHを使って本機のGitをウェブページ版Githubに接続します。
1、ホームディレクトリの下に存在しますか?sshフォルダがなければ作成します。
//   [email protected]     Github         ```

 2、       SSH-KEY     id_rsa.pub   
```ssh-keygen -t rsa -C "[email protected]"```

           :
Enter passphrase(empty for no passphrase):
Enter same passphraseagain:
    ,       。

 3、     Github   SSH  
Settings->SSH and GPG keys->new SSH key

    Title:    
    Key: id_rsa.pub  copy   


![     2017-02-10   11.35.05.png](http://upload-images.jianshu.io/upload_images/1832400-655a4bd3457b141c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

4、        
 `ssh -T [email protected]`

    The authenticity of host 'github.com (207.97.227.239)' can't be established. 
    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 
    Are you sure you want to continue connecting (yes/no)?    
    Hi username! You've successfully authenticated, but GitHub does not provide shell access.
         !

              Github,                 Github  
#####>      
`$git config --global user.name "your real name"`
 `$git config --global user.email "[email protected]"`