boss
boss copied to clipboard
Allow download `blob:none` from git repo
Hello, as you probably have heard before, the download time of Horse repo is quite long. I just tested and found that the repo download size is 127.52 MiB in this moment.
**A solution could be to download the repo with the option --filter=blob:none, this way the download size is less than 1Mb
A little log of my tests:
D:\GitHub>git clone https://github.com/HashLoad/horse.git
Cloning into 'horse'...
remote: Enumerating objects: 2763, done.
remote: Counting objects: 100% (188/188), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 2763 (delta 100), reused 145 (delta 76), pack-reused 2575Receiving objects: 100% (2763/2763), 127.52 MiB |Receiving o
Resolving deltas: 100% (1796/1796), done.
D:\GitHub>git clone --filter=blob:none https://github.com/HashLoad/horse.git horsenoblob
Cloning into 'horsenoblob'...
remote: Enumerating objects: 1596, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 1596 (delta 68), reused 98 (delta 49), pack-reused 1465
Receiving objects: 100% (1596/1596), 300.64 KiB | 1.20 MiB/s, done.
Resolving deltas: 100% (807/807), done.
remote: Enumerating objects: 119, done.
remote: Counting objects: 100% (99/99), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 119 (delta 31), reused 19 (delta 6), pack-reused 20
Resolving deltas: 6% (2/31)
Resolving deltas: 100% (31/31), done.
Updating files: 100% (119/119), done.
du -h --max-dept=0 horse horsedept
130M horse
1.9M horsenoblob
More about --filter=blob:none:
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/