git clone 報錯,網(wǎng)上的方法都是搜索控制面板的憑證管理器,刪除git相關(guān)的憑證,然后就可以了,但我遇到了這個問題,查看卻沒有憑證,解決方法如下:
一般配置方法:
git config --global (--replace-all) user.name "你的用戶名"
git config --global (--replace-all) user.email "你的郵箱"
如果上述步驟沒有效果,我們就需要清除緩存(.gitconfig)
git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
清除緩存之后我們每次提交代碼的時候都需要輸入用戶名和密碼
git config --global credential.helper store
作者:Nickyzhang
鏈接:http://www.itdecent.cn/p/a1908f55bef8
來源:簡書
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請注明出處。