Think before you speak, read before you think.

git clone很大的 repo

by

in

如果一个 git 库有太长的 history,clone 一份需要好长时间,那么可以考虑不 clone 太长的 history.

git clone --depth depth remote-url

例如

git clone --depth 2 https://github.com/torvalds/linux.git

这样git log 只会看到两条记录

参考:http://blogs.atlassian.com/2014/05/handle-big-repositories-git/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *