GIT在window是 配置SSHKEY

1、打开你得命令行工具,输入:

bash 复制代码
 cd ~/.ssh

2、生成密钥

bash 复制代码
#设置自己的邮箱,随意设置
$ ssh-keygen -t rsa -C "wqzbxh@163.com"
bash 复制代码
#输入保存密钥的文件名字
Enter file in which to save the key (/c/Users/dahai/.ssh/id_rsa): wqzbxh

剩下的就是设置密码:写错了所以才出来让我重新输入

bash 复制代码
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Passphrases do not match.  Try again.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

完成之后会 查看一下:取出密钥,在.pub文件内

bash 复制代码
$ cat wqzbxh.pub


ssh-rsa AAAAB3NzaC1yc2........................AAADAQABAAA0= wqzbxh@163.com

复制密钥到githup中(github 的设置中找到SSHKEY)

然后吧刚才复制的密钥粘贴进去

现在你得电脑就已经可以和你得这个正常拉取了

如果你写了邮箱是正确的情况下,git会向你发送一封邮件如;

相关推荐
GISer_Jing8 小时前
Git协作开发:feature分支、拉取最新并合并
大数据·git·elasticsearch
高山莫衣14 小时前
git rebase多次触发冲突
大数据·git·elasticsearch
码农藏经阁14 小时前
工作中常用的Git操作命令(一)
git
kobe_OKOK_14 小时前
【团队开发】git 操作流程
git·elasticsearch·团队开发
码农垦荒笔记14 小时前
Git 安装闭坑指南(仅 Windows 环境)
windows·git
CC码码1 天前
管理你的多个 Git 密钥(多平台多账号)
git·gitlab·github
CC码码1 天前
管理你的多个 Git 密钥(单平台多账号)
git·gitlab·github
大卫小东(Sheldon)1 天前
GIM 1.5发布了! 支持Windows系统了
git·ai·rust
flying jiang1 天前
将大仓库拆分为多个小仓库
git
李boyang10 天前
Git(四):远程操作
git