天天看點

git 錯誤: Unable to find remote helper for 'https'

今天知道問題的原因了,是因為 /usr/libexec/git-core/ 路徑沒在 path 環境變量中。

我們檢視一下:

這導緻裡面的 git-remote-https, git-remote-http 這些得不到執行。是以 git 所表現出來的功能不全。

解決辦法是:将 /usr/libexec/git-core 納入 path,至少在使用 git 之前,設定一下path。

或直接在 /etc/profile 中修改。