git config --global http.proxy '127.0.0.1:7890'
git config --global https.proxy '127.0.0.1:7890'
Make corresponding proxy settings
Then do git clone again
Note:
sudo vim /private/etc/hosts
You can modify the hosts file
Mac OS X terminal input: sudo killall -HUP mDNSResponder
The hosts file just configured can take effect