Gitの設置・配置
1341 ワード
>Githubアカウントを申請する
http://jingyan.baidu.com/article/455a9950abe0ada167277864.html
>Mac本機の上にGitを取り付ける
1、ホームディレクトリの下に存在しますか?sshフォルダがなければ作成します。
http://jingyan.baidu.com/article/455a9950abe0ada167277864.html
>Mac本機の上にGitを取り付ける
brew install git
>SSHを使って本機のGitをウェブページ版Githubに接続します。1、ホームディレクトリの下に存在しますか?sshフォルダがなければ作成します。
// your_email@youremail.com Github ```
2、 SSH-KEY id_rsa.pub
```ssh-keygen -t rsa -C "your_email@youremail.com"```
:
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

4、
`ssh -T git@github.com`
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 "xxxxx@gmail.com"`