1. Increase cache size
git config --global http.postBuffer XXX # Increase according to your needs, 524288000 is 500M
2. Use third-party client tools such as sourcetree
3. Another way git clone https://github.com/XXX
git clone git://github.com/XXX