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=truegit


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'gitlab

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

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/'url

解決方案:
1. 若是帳號密碼有變更 用這個命令 git config --system --unset credential.helper 從新輸入帳號密碼 應該就能解決了orm

檢查本地配置
$ 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=truerem

 

 

$ git config --global user.name fengxiaoleit

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

winast

$ git config --global core.autocrlf falseform

相關文章
相關標籤/搜索