下面的命令将转化浅拷贝到完整拷贝(git version 1.8.3):
git fetch --unshallow
获得origin(远程仓库)的所有分支:
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" git fetch origin
参考链接:
How to convert a Git shallow clone to a full clone? - Stack Overflow
2023-10-19 09:25:04
下面的命令将转化浅拷贝到完整拷贝(git version 1.8.3):
git fetch --unshallow
获得origin(远程仓库)的所有分支:
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" git fetch origin
参考链接:
How to convert a Git shallow clone to a full clone? - Stack Overflow