github仓库开始启用Token认证,用户名密码模式将在2021年8月停止使用

2021-01-08 13:30

提交代码到github原本使用github的登录账号和密码即可。现在github出于安全的考虑,将在2021年8月停止使用账号和密码的方式访问github仓库,改为token认证的方式。

创建步骤

点击Settings

点击Developer settings

点击Personal access tokens

点击Generate new token

选择repo

点击Generate token

复制token,并保存好,github不会保存token,离开这个页面就再也看不到这个token了。

以后访问github仓库就这样:

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token
0791-85271700
QQ咨询:1779755751
QQ交流群:626599871
微信咨询
微信扫码咨询
微信交流群
微信交流群
Powered by UJCMS © 2010-2025 All Rights Reserved
QQ咨询
电话
微信
微信扫码咨询