git config --global core.compression 0
git clone --depth 1 <repo_URI>
进入拉下来的目录
git fetch --unshallow
git pull --all
修改.git/config
找到这行
fetch = +refs/heads/master:refs/remotes/origin/master
替换为
fetch = +refs/heads/:refs/remotes/origin/
最后执行
git fetch