1.手动安装git
1、安装git依赖包
yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
2、删除已有的git
yum remove -y git
3、下载git源码
cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz
tar -zxvf git-2.8.3.tar.gz
cd git-2.8.3
./configure prefix=/usr/local/git/
make && make install
git --version git已经安装好
4、将git指令添加到bash中
vi /etc/profile
在最后一行介入
export PATH=$PATH:/usr/local/git/bin
source /etc/profile 即可
2.免密码push和pull(使用https方式)
1、cd ~
2、vi .git-credentials
在里面写入 https://{username}:{password}@coding.net
3、git config --global credential.helper store
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。