
问题:
如上图所示 git push 时发生了报错,鉴权失败;
解决方案
Settings
->Developer settings
->Personal access tokens
->Generate new token
。- 创建新的访问密钥,勾选
repo
栏,选择有效期,为密钥命名。 - 复制这段密钥。(注意,密钥只显示一次,记得妥善保管)
git push
时,作为用户密码来使用。
解决完成后效果:

参考地址:How to fix: fatal: Authentication failed for https://github.com/