1. 程式人生 > >Git出現fatal: Unable to find remote helper for 'https'

Git出現fatal: Unable to find remote helper for 'https'

tools yourself title https self doc ref pri 安裝

使用Git遠程獲取代碼

[plain] view plain copy print?
  1. git clone https://github.com/twlkyao/findfile.git

出現“fatal: Unable to find remote helper for ‘https‘”(這是因為git環境在重裝後沒有安裝完全,需要重新安裝),可暫時使用git代替https,使用如下命令:

[plain] view plain copy print?
  1. git clone git://github.com/twlkyao/findfile.git

這裏將使用代碼安裝進行介紹:

切換到代碼目錄:

[plain] view plain copy print?
  1. cd /opt/git-1.8.1.2/

然後按照INSTALL中的說明設置安裝前綴(一般使用root安裝):

[plain] view plain copy print?
  1. $ make prefix=/usr all doc info ;# as yourself
  2. # make prefix=/usr install install-doc install-html install-info ;# as root

然後執行make install

[plain] view plain copy print?
    1. # make install

Git出現fatal: Unable to find remote helper for 'https'