zl程序教程

您现在的位置是:首页 >  工具

当前栏目

[环境搭建] git push代码不再支持账号密码登陆

Git代码 环境 搭建 支持 登陆 不再 PUSH
2023-09-11 14:13:59 时间

今天提交代码的时候报了个错:

Support for password authentication was removed on August 13, 2021. Please use a personal access

大概意思是不让用账号密码作为身份验证了,推荐使用 personal access

创建 personal access 的过程在网上搜了下:
https://docs.github.com/cn/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

直以创建完 token 后马上保存一下,不然刷新页面后就看不到了。

关于如何使用

和以前一样, push 代码的时候提示你输入账号密码,在输入密码时使用这个 token 来代替密码即可!