当前位置:网站首页>gerrit 配置SSH Key和账号、邮箱信息
gerrit 配置SSH Key和账号、邮箱信息
2022-08-11 05:25:00 【Emily_rong_2021】
配置SSH Key和账号、邮箱信息
我们选择使用SSH方式来管理代码,由于本地Git仓库和GitHub仓库之间的传输是通过SSH加密的,所以必须要让github仓库认证你SSH key,在此之前,必须要生成SSH key。
任意位置右键—点击“Git Bash Here”,输入:
ssh-keygen -t rsa -C '[email protected]'
其中-t指定密钥类型,这里设置rsa即可,-c是密钥的注释,这里设置成邮箱方便分辨;
一路回车即可;
- 配置用户名和邮箱:
- git config --global user.name "1410475107"
- git config --global user.email "[email protected]"
The email is only optional field to identify the key.邮箱仅仅是识别用的key
When you create the ssh you type (for example):当你创建ssh的时候
ssh-keygen -t rsa -C “any comment can be here”
-t = The type of the key to generate 密钥的类型
-C = comment to identify the key 用于识别这个密钥的注释
So the Comment is for you only and you can put anything inside.
Many sites and software are using this comment as the key name.
所以这个注释你可以输入任何内容,很多网站和软件用这个注释作为密钥的名字
边栏推荐
- 微信和抖音都到十亿级用户了,作为产品经理的你们觉得哪个产品更成功?
- The selection points you need to know about the helmet identification system
- win10 配置tensorflow(GPU) anaconda3 cuda9.0 cudnn for 9.0
- CMT2380F32模块开发3-GPIO例程
- 关于接口响应内容的解码
- Node-2.垃圾回收机制
- 我心仪的数据集—目标检测为主
- 防盗链——防止其他页面通过url直接访问本站资源
- 10 个超好用的 DataGrip 快捷键,快加入收藏! | 实用技巧
- 音乐竞品分析:酷狗、QQ音乐、网易云、酷我、汽水音乐
猜你喜欢
MSP430学习总结(二)——GPIO
arduino的esp32环境搭建(不需要翻墙,不需要离线安装)
The selection points you need to know about the helmet identification system
目标检测——Faster R-CNN 之 Fast R-CNN
STM32学习笔记(白话文理解版)—按键控制
关于安全帽识别系统,你需要知道的选择要点
SCNet: Semantic Consistency Networks for 3D Object Detection
使用ActiveReports制作第一张报表
The selection points you need to know about the helmet identification system
STM32学习笔记(白话文理解版)—搞懂PWM输出
随机推荐
梅科尔工作室-PR第三次培训笔记(效果与转场及插件使用)
Toward a Unified Model
CNN-based Point Cloud De-Noising
目标检测思维导图
物联网IOT 固件升级
aPaaS和iPaaS的区别
梅科尔工作室-Pr第二次培训笔记(基本剪辑操作和导出)
yolov3+centerloss+replay buffer实现单人物跟踪
Maykel Studio - Django Web Application Framework + MySQL Database Fourth Training
STM32学习笔记(白话文理解版)—USART通信接口
Diagnostic Log and Trace——DLT 离线日志存储
弱监督语义分割CLIMS(CVPR2022)
Realize data exchange between kernel and userspace through character device virtual file system (passed based on kernel 5.8 test)
Maykle Studio - HarmonyOS Application Development Third Training
stm32-WS2812 PWM+DMA(自己写库函数)
Pay “Attention” to Adverse Weather
关于if(x)和while(x)的解释
Waymo数据集使用介绍(waymo-open-dataset)
关于接口响应内容的解码
梅科尔工作室-DjangoWeb 应用框架+MySQL数据库第六次培训