解决 remote: HTTP Basic: Access denied Authentication failed for 'https://'报错

解决 remote: HTTP Basic: Access denied Authentication failed for 'https://'报错

在IDEA push 项目时出现下列错误:

Remote URL test failed:
 warning: ----------------- SECURITY WARNING ---------------- warning: 
| TLS certificate verification has been disabled! | 
warning: --------------------------------------------------- warning: 
HTTPS connections may not be secure. 
See https://aka.ms/gcmcore-tlsverify for more information. 
warning: ----------------- SECURITY WARNING ---------------- warning: 
| TLS certificate verification has been disabled! | 
warning: --------------------------------------------------- warning: 
HTTPS connections may not be secure. 
See https://aka.ms/gcmcore-tlsverify for more information. 
warning: ----------------- SECURITY WARNING ---------------- warning: 
| TLS certificate verification has been disabled! | 
warning: --------------------------------------------------- warning: 
HTTPS connections may not be secure. 
See https://aka.ms/gcmcore-tlsverify for more information. 
remote: HTTP Basic: Access denied Authentication failed for 'https://gitcode.net/CreativeAlliance/lottery-1502-guisi.git/'

在网上查了查问题,基本上都是用户登录出现错误。解决方法有:

  1. 看看github 里面的账户和密码,是否之前输入错误,再重新输入。我的就是重新输入成功

  2. windows 可能之前记录了输入错误的账号和密码,在 windows 凭据管理器里面找到保存的 github 账号和密码并删除。在idea 中重新push ,再输入账户和密码

  3. 终极大招,重装git,再连

原文地址:https://www.cnblogs.com/EthanWong/p/15783795.html