Skip to content

Commit f887937

Browse files
git sparse download include /1 (#34268)
1 parent 0c0600f commit f887937

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
> [!TIP]
2+
> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only download the sample subfolder and the last commit. For example:
3+
```
4+
git clone --depth 1 --filter=blob:none https://github.com/dotnet/AspNetCore.Docs.git --sparse
5+
cd AspNetCore.Docs
6+
git sparse-checkout init --cone
7+
git sparse-checkout set aspnetcore/security/authorization/secure-data/samples
8+
```
9+
10+
In the preceding example, the `git sparse-checkout set` command specifies the path to the subfolder that you want to download. Replace
11+
`aspnetcore/security/authorization/secure-data/samples` with the path to the subfolder that you want to download.

0 commit comments

Comments
 (0)