git报错Authenticationfailedfor'http://gitlab.xxxx'问题及解决

作者:

文章目录
  • 报错: fatal: Unencrypted HTTP is not supported for GitLab. Ensure the repository remote URL is using HTTPS.remote: HTTP Basic: Access deniedfatal: Authentication failed for 'http://gitlab.xxxx'​
  • 根据错误提示得知:没有权限,被拒绝访问。 关于这个问题其实很简单,只需要修改一下本地计算机的GitLab的访问策略即可。 在本地计算机的<凭据管理器>中找Git凭据并修改 控制面板>用户账户>凭据管理器 有可能是你修改了账号密码,但是你本地却没有更新,那你只需要修改你对应的凭据就好 我这里是本地没有那个地址的凭据,所以直接添加一个凭据 修改或添加完成之后就可以正常的访问了
  • 以上为个人经验,希望能给大家一个参考,也希望大家多多支持风君子博客。 您可能感兴趣的文章: git提交报错pre -commit hook failed (add –no-verify)问题及解决 git stash 和unstash的使用操作,git unstash failed windows下Idea使用git clone failed. Could not read from remote repository. IDEA中使用Git拉取代码时报 Git pull failed原因及解决方法
  • 目录
    • 报错Authentication failed for 'http://gitlab.xxxx'
    • 解决办法
    • 总结

    报错:

    fatal: Unencrypted HTTP is not supported for GitLab. Ensure the repository remote URL is using HTTPS.
    remote: HTTP Basic: Access denied
    fatal: Authentication failed for 'http://gitlab.xxxx'​

    根据错误提示得知:没有权限,被拒绝访问。

    关于这个问题其实很简单,只需要修改一下本地计算机的GitLab的访问策略即可。

    在本地计算机的<凭据管理器>中找Git凭据并修改

    控制面板>用户账户>凭据管理器

    有可能是你修改了账号密码,但是你本地却没有更新,那你只需要修改你对应的凭据就好

    我这里是本地没有那个地址的凭据,所以直接添加一个凭据

    修改或添加完成之后就可以正常的访问了

    以上为个人经验,希望能给大家一个参考,也希望大家多多支持风君子博客。

    您可能感兴趣的文章:

    • git提交报错pre -commit hook failed (add –no-verify)问题及解决
    • git stash 和unstash的使用操作,git unstash failed
    • windows下Idea使用git clone failed. Could not read from remote repository.
    • IDEA中使用Git拉取代码时报 Git pull failed原因及解决方法

    站内搜索