Skip to content

Commit cd4c1c4

Browse files
danuwRick-Anderson
andauthored
Update secure-data.md (#34239)
* Update secure-data.md Adding a tip to ensure the visitor can git clone only the sub folders needed for this lab from the docs * Update secure-data.md * Update aspnetcore/security/authorization/secure-data.md --------- Co-authored-by: Rick Anderson <[email protected]>
1 parent 75cf531 commit cd4c1c4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aspnetcore/security/authorization/secure-data.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ This tutorial is advanced. You should be familiar with:
6767

6868
[Download](xref:index#how-to-download-a-sample) the [completed](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples) app. [Test](#test-the-completed-app) the completed app so you become familiar with its security features.
6969

70+
> [!TIP]
71+
> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only download the sample subfolder
72+
For example:
73+
```
74+
git clone --depth 1 --filter=blob:none https://github.com/dotnet/AspNetCore.Docs.git --sparse
75+
cd AspNetCore.Docs
76+
git sparse-checkout init --cone
77+
git sparse-checkout set aspnetcore/security/authorization/secure-data/samples
78+
```
79+
7080
### The starter app
7181

7282
[Download](xref:index#how-to-download-a-sample) the [starter](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/security/authorization/secure-data/samples/) app.

0 commit comments

Comments
 (0)