当前位置:网站首页>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.
所以这个注释你可以输入任何内容,很多网站和软件用这个注释作为密钥的名字
边栏推荐
- Maykle Studio - HarmonyOS Application Development Fourth Training
- 梅科尔工作室-HarmonyOS应用开发第一次培训
- The working principle and industry application of AI intelligent image recognition
- stm32-WS2812 PWM+DMA(自己写库函数)
- 物联网基础知识学习
- 关于安全帽识别系统,你需要知道的选择要点
- 梅科尔工作室-第四次PR培训笔记(字幕和标题动画,关键帧动画和声音处理)
- CMT2380F32模块开发5-CLK例程
- CMT2380F32模块开发1-硬件
- 目标检测前言
猜你喜欢

STM32-串口常用寄存器和库函数及配置串口步骤

安全帽识别-施工安全的“监管者”

10 个超好用的 DataGrip 快捷键,快加入收藏! | 实用技巧

Mei cole studios - sixth DjangoWeb application framework + MySQL database training

梅科尔工作室-HarmonyOS应用开发第一次培训

NUC980-镜像烧录

梅科尔工作室-HarmonyOS应用开发第三次培训

Wisdom construction site safety helmet identification system

NUC980-开发环境搭建

The latest safety helmet wearing recognition system in 2022
随机推荐
张小龙的微信公开课(2019年)
aPaaS和iPaaS的区别
HTTP缓存机制详解
微文案也能提升用户体验
CMT2380F32模块开发9-可编程计数阵列 PCA例程
Diagnostic Log and Trace——dlt的编译和安装
CMT2380F32模块开发11-RTC例程
ASP.NET MVC 4中实现action的事务功能
SCNet: Semantic Consistency Networks for 3D Object Detection
ActiveReports报表分类之页面报表
关于接口响应内容的解码
STM32学习笔记(白话文理解版)—外部IO中断实验
The latest safety helmet wearing recognition system in 2022
10 个超好用的 DataGrip 快捷键,快加入收藏! | 实用技巧
Toward a Unified Model
net6 的Web MVC项目中事务功能的应用
Safety helmet identification system - escort for safe production
arduino的esp32环境搭建(不需要翻墙,不需要离线安装)
需求文档(PRD)撰写指南
CNN-based Point Cloud De-Noising