yum -y groupinstall "Development Tools"
yum -y install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel
wget https://www.kernel.org/pub/software/scm/git/git-2.36.0.tar.gz --no-check-certificate
tar -zxvf git-2.36.0.tar.gz
cd git-2.36.0
./configure --prefix=/usr/local/git
make && make install
export PATH="/usr/local/git/bin:$PATH" #.bashrc后添加
source ~/.barshrc
git --version
git config --global user.name xxx
git config --global user.email "xxx@ddd.com"
ssh-keygen -t rsa -C "xxx@ddd.com" #一路enter
cat xxx/id_rsa.pub # 拷贝密钥
SSH and GPG key-> add SSH key -> 密钥复制到此处
ls /usr/local/git/libexec/git-core #显示可用的对比工具
git config --global diff.tool meld #将工具设置为meld
sudo yum -y install meld