Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
if you don't want the entire revision history of git, but only the latest revision, this speeds up the cloning process/bandwidth/diskspace
root@xDevAd:/temp2/test# time git clone --depth 1 --shallow-submodules git://github.com/git/git
Cloning into 'git'...
remote: Enumerating objects: 4080, done.
remote: Counting objects: 100% (4080/4080), done.
remote: Compressing objects: 100% (3599/3599), done.
remote: Total 4080 (delta 379), reused 1931 (delta 311), pack-reused 0
Receiving objects: 100% (4080/4080), 9.83 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (379/379), done.
real 0m6,418s
user 0m1,194s
sys 0m0,786s
root@xDevAd:/temp2/test# mv git git_shallow
root@xDevAd:/temp2/test# time git clone git://github.com/git/git
Cloning into 'git'...
remote: Enumerating objects: 314519, done.
remote: Counting objects: 100% (1619/1619), done.
remote: Compressing objects: 100% (818/818), done.
remote: Total 314519 (delta 1054), reused 1188 (delta 801), pack-reused 312900
Receiving objects: 100% (314519/314519), 172.30 MiB | 3.26 MiB/s, done.
Resolving deltas: 100% (234622/234622), done.
Updating files: 100% (3982/3982), done.
real 1m23,581s
user 1m4,861s
sys 0m19,944s
root@xDevAd:/temp2/test# du -h git_shallow | tail -n1
59M git_shallow
root@xDevAd:/temp2/test# du -h git | tail -n1
230M git