zoukankan      html  css  js  c++  java
  • git config --system --unset credential.helper 重新输入账号密码

    检查本地配置
    $ git config --local -l
    core.repositoryformatversion=0
    core.filemode=false
    core.bare=false
    core.logallrefupdates=true
    core.symlinks=false
    core.ignorecase=true
    core.autocrlf=false
    user.name=start0627
    user.email=start0627@BMC.com
    remote.origin.url=http://amGITHUBpmOURgitlab:8060/start0627/mpBMCwepy.git
    remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
    http.emptyauth=true


    Administrator@PC MINGW64 /d/GPUGO/MP/wepy/mpBMCwepy (master)
    $ git push origin master http://amGITHUBpmOURgitlab:8060/start0627/mpBMCwepy.git
    error: src refspec http://amGITHUBpmOURgitlab does not match any.
    error: failed to push some refs to 'origin'

    Administrator@PC MINGW64 /d/GPUGO/MP/wepy/mpBMCwepy (master)
    $ git remote add origin http://amGITHUBpmOURgitlab:8060/start0627/mpBMCwepy.git

    Administrator@PC MINGW64 /d/GPUGO/MP/wepy/mpBMCwepy (master)
    $ git push origin master
    remote: HTTP Basic: Access denied
    fatal: Authentication failed for 'http://amGITHUBpmOURgitlab:8060/start0627/mpBMCwepy.git/'

    解决方案:
    1. 如果账号密码有变动 用这个命令 git config --system --unset credential.helper 重新输入账号密码 应该就能解决了

    检查本地配置
    $ git config --local -l
    core.repositoryformatversion=0
    core.filemode=false
    core.bare=false
    core.logallrefupdates=true
    core.symlinks=false
    core.ignorecase=true
    core.autocrlf=false
    user.name=start0627
    user.email=start0627@BMC.com
    remote.origin.url=http://amGITHUBpmOURgitlab:8060/start0627/mpBMCwepy.git
    remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
    http.emptyauth=true

    $ git config --global user.name fengxiaole

    $ git config --global user.email fengxiaole@t.com

    win

    $ git config --global core.autocrlf false

  • 相关阅读:
    一个iOS程序员眼中的跨域问题
    web 大规模并发访问的解决方案
    修改Capfile,在正式环境不再使用migration修改数据库
    关于 CAS 不能登录的问题
    老项目占地比较大的原因是release文件夹里有.git 目录
    capistrano3.4.0部署不能自动登录
    capistrano/blob/v3.4.0部署
    私有方法的查找方式
    开启关闭功能没有生效的原因
    找不到Settings
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9571081.html
Copyright © 2011-2022 走看看