git添加用户名邮箱ssh key

git config --global user.name 'feixiangsnail'

git config --global user.email 'feixiangsnail@hotmail.com'

ssh-keygen -t rsa -C 'feixiangsnail@hotmail.com'

在github个人中心setting上添加ssh密钥,这要添加的是“id_rsa.pub”里面的公钥。

原文地址:https://www.cnblogs.com/feixiangsnail15-12-28/p/8610947.html