Faster git clone
Each of us frequently employs the “git clone” command in our daily routines, particularly when seeking open source projects. In this article, I aim to demonstrate how the “allow” parameter can help minimize bandwidth usage when downloading a repository from a remote source. Normal version Directory size: 50 Megabyte
1 2 3 4 5 6 7 8 9 10 11 12 |
$ git clone https://github.com/org-roam/org-roam-server Cloning into 'org-roam-server'... remote: Enumerating objects: 83, done. remote: Counting objects: 100% (83/83), done. remote: Compressing objects: 100% (58/58), done. remote: Total 436 (delta 47), reused 55 (delta 25), pack-reused 353 Receiving objects: 100% (436/436), 37.66 MiB | 10.73 MiB/s, done. Resolving deltas: 100% (265/265), done. Checking connectivity... done. $ du -sh org-roam-server 50M org-roam-server |
[…]