git
鍵作成
terminal
$ cd
$ mkdir ~/.ssh && cd ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ Generating public/private rsa key pair.
$ Enter file in which to save the key (/Users/(username)/.ssh/id_rsa):id_github_"your_name"_rsa
$ Enter passphrase (empty for no passphrase):
$ Enter same passphrase again:
- [Generating a new SSH key and adding it to the ssh\-agent \- User Documentation](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)
- [gitHubでssh接続する手順~公開鍵・秘密鍵の生成から~ \- Qiita](http://qiita.com/shizuma/items/2b2f873a0034839e47ce)
## 設定
```bash:terminal
$ git config --global user.name "your_name"
$ git config --global user.email your_email@example.com
github
- 公開鍵の確認
terminal
$ vi ~/.ssh/id_github_"your_name"_rsa.pub
$ 上記の中身をコピー
-
接続確認
terminal
$ mkdir ~/.ssh/config
$ vi ~/.ssh/config
Host github github.com
HostName github.com
IdentityFile ~/.ssh/id_github_"your_name"_rsa
User git
$ ssh -T github
## 補完
- [Macでgitを利用した開発する際にやっておきたい準備 \- Qiita](http://qiita.com/NorsteinBekkler/items/a0622ee6a39d08d61b72)