首页> 软件配置及服务 >软件配置 >其它软件配置 其它软件配置
windows生成git ssh密钥
作者:小萝卜 2021-12-24 【 其它 Git 】 浏览 1610
简介1.安装git,首先去git官网下载git,https://git-scm.com/downloads,下载.exe格式并安装。
1.安装git,首先去git官网下载git,https://git-scm.com/downloads,下载.exe格式并安装。
安装完是这样的
2.安装TortoiseGit,下载地址https://tortoisegit.org/download/,如下
记得安装过程中要添加一个git.exe文件,这个文件在上一个安装文件的路径下面:
3.从程序目录启动“Git Bash”
4.键入命令:ssh-keygen -t rsa -C "email@email.com","email@email.com"是你的github账号
5.此时,你的C:\Users\admin\.ssh这个路径下会生成两个文件:id_rsa和id_rsa.pub
6.用记事本打开id_rsa.pub文件,复制内容,在github.com的网站上到ssh密钥管理页面,添加新公钥,随便取个名字,内容粘贴刚才复制的内容。
7.完成
很赞哦! (0)
相关文章
- vscode运行yarn命令报错yarn : 无法加载文件 C:\Users\admin\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。
- 为什么使用WampServer切换PHP版本后通过cmd查看PHP版本显示的还是之前版本
- 关于python的深拷贝和浅拷贝
- 设置PhpStorm编辑器为Sublime Text 主题风格
- oneinstack——SSL证书更新
- Drupal7 Views模块
- visual studio code怎么设置默认打开谷歌浏览器?
- index.html:505 WebSocket connection to 'ws://39.114.25.114:8282/' failed: Error in connection establ
- CKfinder开启图片上传后自动添加水印(PHP)
- SourceTree提交vue3-element-admin代码到仓库报错quotepath=false --no-optional-locks commit -q