1. Install and use mercurial (I don't know how to use it, it seems useless, just for ht clone to download go from the golang official website, but that wall ...)
Yum install mercurial
2. Modify environment variables
# Vi/etc/profile
Export GOROOT =/root/go
Export GOPATH =/root/goproject
Export PATH = $ GOROOT/bin: $ PATH
Export GOOS = linux
Export GOARCH = amd64
3, wget to GOLANG Chinese official website to download the corresponding go source code http://www.golangtc.com/download
# Wget http://www.golangtc.com/static/go/go1.4beta1.linux-amd64.tar.gz
4. Decompress the tar command
# Tar-zxf go1.4beta1.linux-amd64.tar.gz
After decompression, the current directory contains a go directory.
5. Download and install git
Method 1:
#Yum install git
PS: update git:Git clone https://github.com/git/git
Method 2: unknown, under exploration
6,
Centos