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