对旧的 repo 做 shallow clone
October 13, 2020
如果你接下来要开发的 repo 不需要完整的 git 历史,可以指定 clone 深度,只 clone 这个 repo 的 x 个 revision。
git clone --depth=1 https://github.com/my/repo.git
如果你接下来要开发的 repo 不需要完整的 git 历史,可以指定 clone 深度,只 clone 这个 repo 的 x 个 revision。
git clone --depth=1 https://github.com/my/repo.git