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会向你发送一封邮件如;

相关推荐
A_Lonely_Cat16 小时前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
和你看星星3 天前
Git rerere:让重复冲突只解决一次
git
嘻嘻仙人6 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson6 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友6 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
深海鱼在掘金7 天前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森7 天前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang8 天前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年8 天前
Windows 中安装 git
git
深海鱼在掘金14 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git