mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
Merge pull request #625 from vnys/master
Add sparse-checkout example to only clone one font
This commit is contained in:
commit
641242258c
1 changed files with 11 additions and 3 deletions
14
readme.md
14
readme.md
|
@ -244,15 +244,23 @@ brew install --cask font-hack-nerd-font
|
||||||
|
|
||||||
### `Option 5: Clone the Repo`
|
### `Option 5: Clone the Repo`
|
||||||
|
|
||||||
> Best option for **full control**, **all** or **most** of the fonts, or **contributing** to development.
|
> Best option for **full control**, **all** or **some** of the fonts, or **contributing** to development.
|
||||||
|
|
||||||
Cloning of this repository is **not** required nor efficient (mostly due to Repository size) if you are simply only interested in a limited set of fonts.
|
A full clone of this repository is **not** required nor efficient (mostly due to Repository size) if you are simply only interested in a limited set of fonts.
|
||||||
|
|
||||||
However if you do want to clone the repo be sure to _shallow_ clone:
|
If you do want to clone the entire repo be sure to _shallow_ clone:
|
||||||
```sh
|
```sh
|
||||||
git clone --depth 1
|
git clone --depth 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you want to clone a sub-directory, use `git sparse-checkout`. The following example requires `Git v2.26`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone --filter=blob:none --sparse git@github.com:ryanoasis/nerd-fonts
|
||||||
|
cd nerd-fonts
|
||||||
|
git sparse-checkout add patched-fonts/JetBrainsMono
|
||||||
|
```
|
||||||
|
|
||||||
### `Option 6: Ad Hoc Curl Download`
|
### `Option 6: Ad Hoc Curl Download`
|
||||||
|
|
||||||
> Option if you want to use the **`curl` command** or for use in **scripts**.
|
> Option if you want to use the **`curl` command** or for use in **scripts**.
|
||||||
|
|
Loading…
Reference in a new issue