From 0823ed35d1dc8a938088d27630429974640f8194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B0=91=E6=98=8E?= Date: Thu, 14 Oct 2021 17:23:18 +0800 Subject: [PATCH] update git/start.md --- git/start.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/git/start.md b/git/start.md index a66fcfb..6097231 100644 --- a/git/start.md +++ b/git/start.md @@ -3,7 +3,11 @@ * 安装 `git` 客户端和图形界面(例如 `TortoiseGit`,`SmartGit`),连接方式注意选择 `openssh`。 * 生成 `ssh 密钥`(Windows 用户请先打开 `git bash`),输入命令: - ```ssh-keygen -t rsa -b 4096 -C "your_email@example.com"``` + ```bash + ssh-keygen -t rsa -b 4096 -C "改成你的邮箱" + ``` + 生成的密钥文件在 `~/.ssh` 文件夹下,其中 `id_rsa` 是私钥,请注意保密;`id_rsa.pub` 是公钥,无需保密,可放在需要使用的服务器上。 - 延伸阅读:[非对称加密](https://zhuanlan.zhihu.com/p/49494990) + 延伸阅读:[非对称加密](https://zhuanlan.zhihu.com/p/49494990) + * 打开 [设置](https://git.yztiot.com/user/settings/keys),上传公钥,才能连接远众 git 仓库。