docs: update 3.5 (#164)

This commit is contained in:
LeiSure
2023-12-19 00:38:00 +08:00
committed by GitHub
parent 7d3a0676e7
commit fade5823a9
12 changed files with 38 additions and 1 deletions

View File

@@ -281,7 +281,44 @@ git config --global user.email "zhangsan@foo.com" # your email
跟随新创建之后的指引,`…or create a new repository on the command line` 内他描述了如何创建一个文件夹、创建一个 README.md 的文件,然后和 github 仓库绑定。
push 的时候 github 会弹窗索要你的 github 账号和密码,填上去就能用了。
push 的时候 github 会弹窗索要你的 github 个人信息,如下图
![](./static/image_32.png)
输入你的 github 用户名
![](./static/image_33.png)
但如果这个时候输入你的账户密码,就会出现如下提示
![](./static/image_35.png)
这是因为 github 在 2021 年 8 月 13 日之后移除了对密码验证的支持,你需要使用令牌认证的方式
进入个人设置,拉到最底下
![](./static/image_36.png)
选择
![](./static/image_37.png)
![](./static/image_38.png)
会看到这样一个界面
![](./static/image_39.png)
可以随便起一个名字,选择 token 的有效期,然后给这个 token 一些权限,如果不清楚这些选项分别代表什么意思的话,把 repo 这个勾选一般就足够了。
:::warning
这个令牌只会在生成时可见,之后就不会再显示了,请做好复制并保存
:::
这样我们就可以使用 token 来进行 https 方法绑定 github 账号
![](./static/image_40.png)
#### 【ssh 方法配置】创建 SSH Key 并获取公钥

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB