一、從 https://github.com/git/git 下載最新版。點右邊clone & download圖標,從下拉菜單中選download zipgit
二、指定安裝目錄。github
make prefix=/usr/local/git allip
make prefix=/usr/local/git installit
三、經過vi /etc/profile 加入bin目錄。file