各位,如果能彈輸入賬號(hào)密碼框出來(lái),一定是你賬號(hào)密碼搞錯(cuò)了,就別繼續(xù)看了。

切換命令行:

依然報(bào)錯(cuò),
說(shuō)到這個(gè)問(wèn)題,又可以長(zhǎng)篇大論了, 我使用的是tortoisegit,window電腦
平常都是用ppk文件組合 _netrc文件進(jìn)行登錄的,這樣設(shè)置之后基本上只需要輸入密碼,不再需要輸入用戶名就可以上傳更新,要節(jié)省不少時(shí)間
_netrc文件可以自己搜索在C:\Users\Administrator\%username%\_netr下 內(nèi)容如下:
machine git.oschina.net
login 6948886526@qq.com
password xxxxxxx
#machine git.coding.net
#login qssq
#password xxxxx
#machine github.com
#login qssq
#password xxxxxx
#machine github.com
#login xxxxx
弊端呢,就是一個(gè)github網(wǎng)站沒(méi)法切換多個(gè)賬號(hào),我研究過(guò)hosts別名實(shí)現(xiàn),發(fā)現(xiàn)并不能,另外開(kāi)源中國(guó)的話應(yīng)該可以,他現(xiàn)在有多個(gè)域名,
,github我用nsloop只看到綁定了一個(gè)域名
算了不長(zhǎng)篇大論了,
如果刪除上面的信息然后切換為https登錄輸入賬號(hào)密碼。非ssh方式登錄了,,還是不頂用就看看下面的。
出現(xiàn)上面的原因大概是開(kāi)源中國(guó)創(chuàng)建團(tuán)隊(duì)賬號(hào)導(dǎo)致的問(wèn)題,解決方法刪除上面的內(nèi)容也沒(méi)啥用了.
網(wǎng)上說(shuō)了一些方法發(fā)現(xiàn)幾乎沒(méi)啥用,比如重置右鍵密碼
或者
git remote -v
git remote remove origin
git remote add origin xxx
或者
git config -–global user.name "xxx"
git config –-global user.email "xxx@xxx.com"
那么到底如何解決
git.exe fetch -v --progress "origin"
fatal: Authentication failed for 'https://gitee.com/qssq666/xxxxxx.git/'
解決方法如下:
git config --system --unset credential.helper
然后就終于可以重新填寫(xiě)用戶名和密碼進(jìn)行提交了。

如果還是不行,我又發(fā)現(xiàn)了一個(gè)方法,大塊.gitconfig 然后刪除
[user]
name = luozheng
email = qssq666@foxmail.com
[credential]
helper = manager
改成
[user]
name = luozheng
email = qssq666@foxmail.com
也就是刪除
[credential]
helper = manager
就又可以出現(xiàn)了,全部刪除會(huì)出現(xiàn)毛病。雖然能彈出但是有其他錯(cuò)誤。