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

相关推荐
大白要努力!2 小时前
Android 项目历史提交远程仓库资源过大,如何清理历史提交中无用的大文件
android·git
一点事2 小时前
git:已有主分支,创建空分支,管理项目
git
指尖跳动的光2 小时前
git 提交报 Updates were rejected because the tip of your current branch is behind
git
痕忆丶3 小时前
Git_Rebase_Conflict_Resolution
大数据·git
啃火龙果的兔子3 小时前
vscode中的git插件
git·vscode·elasticsearch
小钟不想敲代码12 小时前
GitFlow
git·gitflow
云和数据.ChenGuang18 小时前
git commit复合指令
大数据·git·elasticsearch
-拟墨画扇-1 天前
Git | 文件提交操作
git·gitee·github·gitcode
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-25)
git·ai·开源·llm·github
-拟墨画扇-1 天前
Git | 文件修改操作
大数据·git·gitee·github·gitcode