git版本V2.8.2使用unzip解压unzipgit-2.8.2安装:cdgit-2.8.2将其安装在“/usr/local/git”目录下。makeprefix=/usr/local/gitallmakeprefix=/usr/local/gitinstall环境变量修改vim/etc/profile然后在文件的最后一行,添加下面的内容,然后保存退出。exportPATH=/usr/local/git/bin:$PATHsource/etc/profile