有一个包含数千个提交的大型回购。当我克隆它时,我只想看到最新的代码,不要等太久,所以我运行:
git clone git://..../... --depth 1
但后来,我想看到所有的历史提交,但我不知道如何获取所有的历史。
使用git pull --unshallow
,它将下载整个提交历史记录。
或者,您也可以运行git fetch --depth=1000000
。