Access denied. The provided password or token is incorrect or your account has 2FA enabled and you mustl fatal: Authentication failed
一、场景:
在公司使用之前的账号密码clone代码的时候出现异常:Access denied. The provided password or token is incorrect or your account has 2FA enabled and you mustl fatal: Authentication failed
- 原因:在密码没有更改的情况下,我之前进行过双因子认证,这个认证后就不能使用密码来登录clone了
二、解决方案:
- 点击用户头像–>Access Tokens,填写Token name、Expiration date、Select scopes -》Create personal access token即可
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-axABVrc1-1691115982274)(C:\Users\Jimmy\AppData\Roaming\Typora\typora-user-images\1691113910599.png)]
复制出token在idea使用token登录就可以正常clone