1、设置深度
git clone --depth 1 https://gitee.com/tcwong/pengExpressMS.git
cd yyyy 目录下
2、配置文件
git config --add core.compression -1
3、拉取master 分支
git fetch --unshallow
4、配置拉取所有分支代码
进入项目根文件夹,修改 .git 隐藏文件夹目录中 config文件
fetch = +refs/heads/master:refs/remotes/origin/master
修改为
fetch = +refs/heads/*:refs/remotes/origin/*
5、再次拉取代码
git pull origin