MacBook 配置git用ssh连接(gitee)

119 阅读1分钟

首先安装git,然后打开命令行,先配置提交的邮箱

//配置提交的邮箱
git config --global user.email "邮箱"
//设置用ssh生成密钥,要按三次回车键
ssh-keygen -t rsa -C "邮箱@qq.com"
//查看生成的密钥
cat /Users/.ssh/id_rsa.pub
//在gitee个人中心配置后,运行这个
ssh -T git@gitee.com