1, git download installation package git-2.9.4.tar.gz
2, extract
tar -xzvf git-2.9.4.tar.gz
3, the revised unzip the file name
2.9.4 mV Go-Go
4, the installation dependent libraries git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel perl-ExtUtils-Embed
5, into the git file, execute the following command:
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc
6, see the git version
git --version
7, install ssh
ssh-keygen -t rsa -C"[email protected]"
8. Check your public key to copy him to git on
cat ~/.ssh/id_rsa.pub
9, to join public git on: setting -> SSH Keys
10, test whether the configuration:
git clone [email protected]/spring-boot-mybatis.git