git 操作

1.全局设置名称跟邮箱
git config --global user.name "姓名"

git config --global user.email "邮箱@qq.com"

2.生成公钥命令
ssh-keygen -t rsa -C "邮箱@qq.com"

3.查看公钥
cat ~/.ssh/id_rsa.pub

posted @ 2018-02-24 22:10  松歌  阅读(137)  评论(0编辑  收藏  举报