git配置SSH

1 打开cmd窗口

2 在窗口中输入如下命令:

配置用户名:

复制代码
git config --global user.name "gyk"

配置邮箱:

复制代码
git config --global user.email "[email protected]"

继续在Git命令窗口中输入如下命令,即可生成SSH公钥和私钥

复制代码
ssh-keygen -t rsa -C "[email protected]"

3 然后连打三次空格

4 查看生成的ssh密钥,输入如下命令:

复制代码
type id_rsa.pub

5 将查询的内容复制到git仓库中

相关推荐
Clownseven3 小时前
SSH/RDP无法远程连接?腾讯云CVM及通用服务器连接失败原因与超全排查指南
服务器·ssh·腾讯云
ricky_fan3 小时前
window下配置ssh免密登录服务器
运维·服务器·ssh
自来也_5 小时前
Git配置代理
git
Jooolin20 小时前
【编程史】Git是如何诞生的?这可并非计划之中...
linux·git·ai编程
MrWang.1 天前
Ubuntu中SSH服务器安装使用
服务器·ubuntu·ssh
Lw老王要学习1 天前
VScode 使用 git 提交数据到指定库的完整指南
windows·git·vscode
去旅行、在路上1 天前
Git & Svn
git·svn
abcnull1 天前
github中main与master,master无法合并到main
git·github
家庭云计算专家1 天前
飞牛云一键设置动态域名+ipv6内网直通访问内网的ssh服务-家庭云计算专家
运维·云计算·ssh·nextcloud·ddns·动态域名解析
养意1 天前
git提交代码和解决冲突修复bug
git·bug