Git 的工作需要调用 curl,zlib,openssl,expat,libiconv 等库的代码,所以需要先安装这些依赖工具
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
Git 官方站点下载最新版本源代码
https://www.kernel.org/pub/software/scm/git/
wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-2.9.4.tar.gz
编译并安装
tar zxvf git-2.9.4.tar.gz cd git-2.9.4 make prefix=/usr/local all make prefix=/usr/local install
用 git 把 Git 项目仓库克隆到本地,以后随时更新
git clone git://git.kernel.org/pub/scm/git/git.git
在 Windows 上安装
http://msysgit.github.com/
下载地址
https://github.com/git-for-windows/git/releases/download/v2.13.2.windows.1/Git-2.13.2-64-bit.exe
客户端:
https://download.tortoisegit.org/tgit/2.4.0.0/
TortoiseGit及汉化包下载地址
https://download.tortoisegit.org/tgit/2.4.0.0/TortoiseGit-2.4.0.2-64bit.msi
https://download.tortoisegit.org/tgit/2.4.0.0/TortoiseGit-LanguagePack-2.4.0.0-64bit-zh_CN.msi