github push 要求密码,但是密码已经弃用的解决方案
参考资料:https://bobbyhadz.com/blog/support-for-password-authentication-was-removed-on-august
1. 创建 github personal access token
- Visit https://github.com and in the upper-right corner, click on your profile picture and then click Settings.
- In the left sidebar, click on < > Developer settings.
-
In the left sidebar, click on Personal access tokens and then Tokens (classic).
-
From the Generate new token dropdown menu select Generate new token (classic).
- Give your token a descriptive name.
-
Select when the token should expire from the dropdown menu. I'll use the default expiration of 30 days.
-
I'll check all checkboxes in the Select scopes section, but you can only select the scopes you require for fine-grained control.
- Click on the Generate token button.
IMPORTANT -
Make sure to copy your Personal Access Token now. You won't be able to see it again.
-
Treat your access token like a password. You can enter your token instead of your password when performing Git operations over HTTPS.
-
Store your Personal Access token in a local file or in a secure remote password manager.
If you need to clone a private GitHub repository or push to a repository, you can use your Personal Access Token when you get prompted for a password.
以后输入密码输入这个 personal token 就行
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?