zoukankan      html  css  js  c++  java
  • 【解决】Git failed with a fatal error. Authentication failed for ‘http://......’

    今天在visual studio中运行项目,打算pull最新的代码的时候,报错:

    Git failed with a fatal error. Authentication failed for ‘http://......’

    1. 首先你要看一下是不是自己的账号密码错误,不匹配

    git config --global --list

    2. 如果账号密码正确则尝试一下这个解决方案:

    git config --system --unset credential.helper

    3. 有些人可能会出现新的问题:

    error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied.

    可以通过路径 Control Panel | User Accounts | Credential Manager 在 Generic Credentials找到对应的权限 

    Figure: 移出出错项目的对应用户凭证

    note: 当然也可以通过 Control Panel | All Control Panel Items | Credential Manager 找到对应路径

    接下来再尝试pull的操作重新输入账号密码,问题就被解决了

  • 相关阅读:
    SSM框架整合步骤
    Spring-data-jpa
    allure定制报告
    pytest常用选项
    staticmethod&classmethod&property
    __slot__
    python的参数传递
    闭包和装饰器
    内置高阶函数
    str
  • 原文地址:https://www.cnblogs.com/RikuBlog/p/11014931.html
Copyright © 2011-2022 走看看