git配置用户名和邮箱

配置用户名:git config --global user.name “username”

配置邮箱:git config --global user.email “xxx@email.com”

配置ssh免密登录:

1 使用命令生成密钥

ssh-keygen -t rsa -C “user.email”

连续三次回车

一般用户目录下会生成

id_srsa

id_rsa.pub

登录进入gitee,在设置页面找到SSH KEY将.pub文件的内容粘贴进去

使用ssh -T git@gitee.com测试是否成功即可

原文地址:https://www.cnblogs.com/mibing/p/15150218.html