Support for password authentication was removed on August 13, 2021.解决方案和Git多源多帐号高效追踪实现

2021年8月13日后,GitHub不再支持密码认证,需使用个人访问令牌(token)。本文介绍了token的优势,如安全性和便捷性,并详细阐述了解决方案:生成token,配置git,实现快捷提交和多源多账号高效追踪仓库。总结认为,token的使用极大方便了多源多账号的git操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

0.问题现象

1. 问题原因

潜在优点:

2. 解决方案

3.快捷提交提交代码

4.高效多源多帐追踪git仓库

5. 总结


0.问题现象

之前用用户名和密码提交代码时OK的,在2021 年 8 月 13之后需要改成token提交了,不然就会报出Support for password authentication was removed on August 13, 2021. 错误提示。更多信息如下:

➜  lib git:(main) git config user.name "*****"
git config user.email "*****@163.com"
➜  lib git:(main) git push origin main:main
Username for 'https://github.com': *****
Password for 'https://******@github.com':
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: Authentication failed for 'https://github.com/****/lib
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FeelTouch Labs

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值