include download /1

sparce/git/1
Rick Anderson 2024-12-02 14:09:32 -10:00
parent 6c863b6f5a
commit 563166e0e2
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
> [!TIP]
> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only download the sample subfolder and the last commit. For example:
```
git clone --depth 1 --filter=blob:none https://github.com/dotnet/AspNetCore.Docs.git --sparse
cd AspNetCore.Docs
git sparse-checkout init --cone
git sparse-checkout set aspnetcore/security/authorization/secure-data/samples
```
In the preceding example, the `git sparse-checkout set` command specifies the path to the subfolder that you want to download. Replace
`aspnetcore/security/authorization/secure-data/samples` with the path to the subfolder that you want to download.