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保存的用戶名和密碼有沖突