git 配置公钥 mac版本
-
- 创建ssh key 生产公钥
ssh-keygen -t rsa -C "xxx@qq.com"
-
- 三次我们都回车
-
- 检查电脑是否创建了公钥和私钥
cd ~/.ssh
ls
cat id_rsa.pub
- (扩展) git config --global user.name "xxxx" 配置用户名
git config --global user.email "1162932884@qq.com" 配置邮箱名
git config --global user.name 查看用户箱名
git config --global user.emai 查看邮箱
git config --global --unset user.name 删除用户名
git config --global --unset user.email 删除邮箱