linux
yum安装方便快捷,但是找不到安装路径,所以采用传统方法安装。参考:https://blog.csdn.net/huaishu/article/details/40891229 第一部分
上传git安装包git-2.8.3.tar.gz到/usr/local路径下解压,进入解压目录git-2.8.3安装依赖包。
yum -y install gcc openssl openssl-devel curl curl-devel unzip perl perl-devel expat expat-devel zlib zlib-devel asciidoc xmlto gettext-devel openssh-clients
编译:
./configure -prefix=/usr/local/git --with-curl --with-expat
make && make install
最后添加环境变量即可。
查看git是否安装成功:git --version
常见错误参考:https://www.cnblogs.com/-colin/p/7160761.html
Windows
https://blog.csdn.net/qq504196282/article/details/53025679