一:從github上下載git的源碼 二:安裝必要的依賴择份,openssl-devel 否則會(huì)提示找不到ssl.h 三:make prefix=/usr/local all make prefix=/usr/local install