参考: https://blog.csdn.net/Crystalqy/article/details/107489928
解决方案:
1. 拉指定分支, 并且指定深度为1 (深度为1只会拉取最近的一次提交)git clone -b master --depth=1 http://xxx/xxx.git2. 再获取所有分支git pull --unshallowgit config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"git fetch -pv
