git ssh key配置
2016-07-31 本文已影响0人
bknlm
1. 设置global name 和 email
$ git config --global user.name "your git username"
$ git config --global user.email "your git email test@gmail.com"
2. 生成SSH密钥
$ cd ~/.ssh
$ ssh-keygen -t rsa -C “test@gmail.com”
3.在github上添加id_rsa.pub里的公钥