在使用git pull、git push、git clone會報類似如下的錯誤:
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/zemo/demo.git/info/refs fatal: HTTP request failed
一般是由於git版本的問題。
使用如下指令查看版本:
# git --version git version 1.7.0.1
可以通過安裝更高的版本解決問題。
目前git最高版本應該是2.0.0.1了
- fatal: Unable to find remote helper for 'https'
報錯如上。
是因為git 是通過curl請求網絡的。仔細檢查發現
<span style="font-family: Arial, Helvetica, sans-serif;">checking for curl_global_init in -lcurl... no</span>安裝curl及curl-devel
yum install curl curl-devel然后重新
#./configure #make #make install