目录
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