Recently I was using Git clone on a Tencent cloud server in China and the Github service was never able to connect. I had no choice but to start looking for the Fast Git service, but my search was in vain. So I thought I'd build my own.

Temporary replacement of Git links

git clone https://w0.pw/{author}/{repo}

Permanent replacement of Git links

git config --global url."https://w0.pw/".insteadOf "https://github.com/"
git config protocol.https.allow always

Edit Git configuration

View:

git config --global --list

Edit:

git config --global --edit

Install Latest git on CentOS 7 from End Point repository

Remove old git:

sudo yum -y remove git
sudo yum -y remove git-*

Add End Point CentOS 7 repo

sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm

Once repository is added, install Git 2.x on CentOS 7

sudo yum install git

Check git version

git --version