1. 程式人生 > >git中出現remote: HTTP Basic: Access denied

git中出現remote: HTTP Basic: Access denied

解決方法 賬號密碼 遠程服務 true The 保存 不能 方法 sse

git中出現remote: HTTP Basic: Access denied

1.git clone時出現

Username for http://******: ***
remote: HTTP Basic: Access denied
fatal: Authentication failed for http://******/java/gh-assemble.git/

2.解決方法

1. 如果賬號密碼有變動 用這個命令 git config –-system –-unset credential.helper 重新輸入賬號密碼 應該就能解決了 
2. 如果用了第一個命令 還不能解決問題那麽 用這個命令: git config –-global http.emptyAuth true

3.原因

遠程服務端的用戶名和密碼與當前系統中git保存的用戶名和密碼有沖突

git中出現remote: HTTP Basic: Access denied