git clone depth
shallow cloneともいうけど、 --depth n
とすることでコミット数だけcloneする
だいたい --depth 1
みたいな使い方をする
--depth <depth> Create a shallow clone with a history truncated to the specified number of commits. Implies --single-branch unless --no-single-branch is given to fetch the histories near the tips of all branches. If you want to clone submodules shallowly, also pass --shallow-submodules.