5
Github 强制要求使用 Personal access token
source link: https://z.arlmy.me/posts/hexo/Hexo_PersonalAccessToken/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Github 强制要求使用 Personal access token
命令行报错
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
Deprecating password authentication | GitHub Developer Guide 官方解释,用户名和密码的验证方式从 2021 年 8 月 13 日开始不再支持,要转而使用 personal access token。
- 在 Github 账户,Setting - Developer settings - Personal access tokens - Generate new token;
- Note 填写 Hexo 或 Blog 之类,勾选第一项 repo,然后 Generate token;
- 复制生成的 Token,类似
ghp_sFs1x2x3x4x5x6x6x7x8x8xxxxxxx
; - Windows 系统,打开“设置”,搜索“凭据”,进入“凭据管理器”;
- 点击“Windows”凭据,在普通凭据里找到
git:https://github.com
,编辑; - 在密码一栏,将生成的 Token 复制进去。
CHANGELOG
来发评论吧~
Powered By Valine
v1.4.14
v1.4.14
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK