- git add ssh key
- ssh-keygen -t rsa
- update to github ssh key
- ssh -T git@github.com
- add to .ssh/config
Host github github.com HostName github.com IdentityFile ~/.ssh/id_git_rsa #ここに自分の鍵のファイル名 User git
ssh -T github
- change git repository from http to ssh
git remote -v
git remote set-url origin git@github.com:xx/xx.git
git remote -v