- 安装golang
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
yum install -y golang
- 安装git
yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel nss curl libcurl
wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
tar -zxvf git-2.0.5.tar.gz
cd git-2.0.5
make prefix=/usr/local/git all -j16
make prefix=/usr/local/git install -j16
ln -s /usr/local/git/bin/git /usr/local/bin/git
- 将SSH-KEY加入github
cat ~/.ssh/id_rsa.pub
参考文献:
https://studygolang.com/articles/4521
https://www.cnblogs.com/fuyuanming/p/5804695.html