git拉取代码时报错:
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
直接输入账号和密码报错是不能直接推送的,需要认证,但是确认账号和密码没错,原来是GitHub修改了认证密码需要填token,
复现:
1.输入 git pull 用户名认证,密码报错
2.再次git pull用户名,密码填token,成功拉取代码
总结:token的获取要到github的
- Settings
- Developer settings
-
Personal access tokens
下面获取。