對舊的 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