zoukankan      html  css  js  c++  java
  • git push 提交操作出现 fatal: Authentication failed for 错误 解决方案

    场景描述

    通常我们在日常开发时一般使用记住git密码功能,但是如果密码输入错误了就不会再弹出输入密码框了。

     add . ;  commit -m ‘laoji.org ‘ ;  push
    On branch master
    Your branch is ahead of ‘origin/master’ by 1 commit.
    (use “git push” to publish your local commits)
    nothing to commit, working tree clean
    remote: Coding 提示: Authentication failed.
    remote: 认证失败,请确认您输入了正确的账号密码。

    配置用户信息

    git config --global user.name [username]
    git config --global user.email [email]

    查询用户信息

    git config --list

    3、如果push遇到在输入密码是熟错后,就会报这个错误fatal: Authentication failed for

    解决办法( 请使用管理员运行 )

    git config --system --unset credential.helper

    之后你在push就会提示输入名称和密码

    如不使用管理员运行可能会出现如下错误:

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

  • 相关阅读:
    UrlPathEncode与UrlEncode的区别
    大文件读取方法(C#)
    JavaScript与FileSystemObject
    ActiveXObject对象详解
    JS获取事件源对象
    实用JS大全
    设计模式的适用场景
    [转载]BigPipe技术
    window.location
    AJAX XMLHttpRequest
  • 原文地址:https://www.cnblogs.com/51net/p/13233762.html
Copyright © 2011-2022 走看看