0 、下載下傳git源碼包
1、git 安裝包的下載下傳位址:
https://www.kernel.org/pub/software/scm/git
2、從以上位址下載下傳git-2.8.2.tar.gz源碼包;
3、将源碼包上傳到對應伺服器;
我将源碼包放在了下面的目錄:
[[email protected] ~]#mkdir /tmp/git
1、安裝git
1、編譯安裝
[[email protected] ~]#tar -zxf git-2.8.2.tar.gz
[[email protected] ~]#cd git-2.8.2/
[[email protected] ~]#./configure
[[email protected] ~]#make
[[email protected] ~]#make prefix=/usr/local install
為確定$PATH環境變量生效,需要重新連接配接後執行
[[email protected] ~]#git --version
[[email protected] ~]#exit
2、使用git下載下傳項目
[[email protected] ~]$ git clone https://github.com/jhyehuang/gf_financial.git