Background
In Nov. 2015, kernel.org announced that Fastly(a CDN provider) offered CDN service to provide fast download for Linux kernel releases.
How to use this feature
-
Download Linux bundle
$ wget -c --no-check-certificate https://cdn.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/clone.bundle
In Shanghai, it only takes about 20min to download the bundle.
-
Verify downloaded bundle
$ git bundle verify clone.bundle
-
Clone from the bundle
$ git clone clone.bundle linux
-
Change 'origin' point to the live git repo
$ cd linux $ git remote remove origin $ git remote add origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ git pull origin master
Now, everything is done.
What is git bundle?
refer this link
References
[1] https://www.kernel.org/category/site-news.html
[2] https://git-scm.com/docs/git-bundle