gitee配置免密提交

1.下载 git;

https://git-scm.com

2、配置 git,进入 git bash

# 配置用户名 
git config --global user.name "mucx" //(名字) 
# 配置邮箱 
git config --global user.email "[email protected]" //(注册账号时用的邮箱)s

3、配置 ssh 免密登录

https://gitee.com/help/articles/4181#article-header0

进入 git bash;

使用:ssh-keygen -t rsa -C “[email protected]” 命令。 连续三次回车。

一般用户目录下会有

或者 cat ~/.ssh/id_rsa.pub

gitee配置免密提交_第1张图片

登录进入 gitee,在设置里面找到 SSH KEY 将.pub 文件的内容粘贴进去
gitee配置免密提交_第2张图片
gitee配置免密提交_第3张图片

使用 ssh -T [email protected] 测试是否成功即可
在这里插入图片描述

你可能感兴趣的:(工具安装,git,github)