1、配置用户名和邮箱
git config --global user.name "用户名"
git config --global user.email "邮箱"
2、生成公钥
ssh-keygen -t rsa -C "邮箱"
# my_config example
git config --global user.name "wandugu"
git config --global user.email "wandugu@126.com"
ssh-keygen -t rsa -C "wandugu@126.com"
3、查看公钥
cat ~/.ssh/id_rsa.pub