一、Git的安置 1. 在windows端
到地点:https://git-scm.com/downloads
选择对应版本下载后,进行傻瓜式安置即可
2. 在linux端检察是否安置了git,呈现下图即为未安置
如果尚未安置,下载安置包
wget https://
然后解压压缩包,并切换到git包内
tar -zxvf git-2.8.3.tar.gz cd git-2.8.3
配置git安置的路径
./configure prefix=http://www.mamicode.com/usr/local/git/
编译并安置
make && make install
如果呈现下面报错
CC credential-store.o In file included from credential-store.c:1:0: cache.h:40:18: fatal error: zlib.h: No such file or directory #include <zlib.h> ^ compilation terminated. make: *** [credential-store.o] Error 1
则说明缺少编译安置的工具,则先用yum安置工具
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
即可以进行编译安置,查抄是否安置告成
git --version
如果呈现下图即说明安置已告成
,