修改區域網路密碼,或git密碼後, 發現任何操作都會抛出這個git remote: HTTP Basic: Access denied 錯誤,
原因就是本地的git配置的使用者名、密碼和gitlab上注冊的使用者名、密碼不一緻了,需要同步一下密碼
解決方案:
windows解決方案可采用:
控制台==>使用者賬戶==>憑據管理器==>Windows憑據==>普通憑據,找到git://的一條,點選“編輯”,修改密碼即可。
指令行解決方案:
git config –system –unset credential.helper
或
git config –global http.emptyAuth true