chore: cos

This commit is contained in:
camera-2018
2023-12-19 00:52:10 +08:00
parent fade5823a9
commit 98ea9faf7d

View File

@@ -283,31 +283,31 @@ git config --global user.email "zhangsan@foo.com" # your email
push 的时候 github 会弹窗索要你的 github 个人信息,如下图
![](./static/image_32.png)
![](https://cdn.xyxsw.site/image_32.png)
输入你的 github 用户名
![](./static/image_33.png)
![](https://cdn.xyxsw.site/image_33.png)
但如果这个时候输入你的账户密码,就会出现如下提示
![](./static/image_35.png)
![](https://cdn.xyxsw.site/image_35.png)
这是因为 github 在 2021 年 8 月 13 日之后移除了对密码验证的支持,你需要使用令牌认证的方式
进入个人设置,拉到最底下
![](./static/image_36.png)
![](https://cdn.xyxsw.site/image_36.png)
选择
![](./static/image_37.png)
![](https://cdn.xyxsw.site/image_37.png)
![](./static/image_38.png)
![](https://cdn.xyxsw.site/image_38.png)
会看到这样一个界面
![](./static/image_39.png)
![](https://cdn.xyxsw.site/image_39.png)
可以随便起一个名字,选择 token 的有效期,然后给这个 token 一些权限,如果不清楚这些选项分别代表什么意思的话,把 repo 这个勾选一般就足够了。
@@ -318,7 +318,7 @@ push 的时候 github 会弹窗索要你的 github 个人信息,如下图
这样我们就可以使用 token 来进行 https 方法绑定 github 账号
![](./static/image_40.png)
![](https://cdn.xyxsw.site/image_40.png)
#### 【ssh 方法配置】创建 SSH Key 并获取公钥