惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
有赞技术团队
有赞技术团队
博客园_首页
IT之家
IT之家
爱范儿
爱范儿
量子位
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
The Cloudflare Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
雷峰网
雷峰网
V
Visual Studio Blog
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题

乌帮图

七麦数据 analysis 加密参数 | 乌帮图 2021 年 8 月跑步记录:配速很低 | 乌帮图 2021 年 6 月&7 月跑步记录 使用 OpenArk 查找系统全局快捷键 | 乌帮图 2021 年 5 月跑步记录:状态不错 | 乌帮图 腾讯体育直播源调试 | 乌帮图 PP体育直播源调试摘要 | 乌帮图 央视频移动网页版 ckey | 乌帮图 2021 年 4 月跑步记录:重新启航 | 乌帮图
GitHub 已停止支持 Git 密码验证 | 乌帮图
作者是 乌帮图。 · 2021-08-15 · via 乌帮图

今天在往 GitHub 仓库 push 代码时出现错误Support for password authentication was removed,请求时会返回 403 错误。具体如下:

$ git push
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.
fatal: unable to access 'https://github.com/wbt5/real-url.git/': The requested URL returned error: 403

Support for password authentication was removed

看意思是:从 2021 年 8 月 13 日开始,已移除在 Git 客户端上使用账号密码的验证方式,之后都要用基于令牌的身份验证来确保 Git 操作的安全,比如 personal access、OAuth、SSH Key、GitHub App installation token 都是可以的。

这里用最快捷解决办法:

1、先要去 GitHub 账户中获取一个 Personal access tokens:Settings -- Developer settings -- Personal access tokens -- Generate new token,填入 Note,Expiration 我设置的是永不过期,下面 Select scopes 全选,Generate token 后复制。

2、在 Git bash 中输入:git remote set-url origin https://<生成的token>@github.com/用户名/仓库名即可。

话说现在 GitHub 越来越难登陆了,链接经常被重置或超时。