From 938590f3f21e420ae52a9bb20dc37b8afd212936 Mon Sep 17 00:00:00 2001 From: Dan Benitah <8134789+danuw@users.noreply.github.com> Date: Thu, 28 Nov 2024 18:53:04 +0000 Subject: [PATCH 1/3] 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 --- aspnetcore/security/authorization/secure-data.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aspnetcore/security/authorization/secure-data.md b/aspnetcore/security/authorization/secure-data.md index 3760c4565821..fde322041086 100644 --- a/aspnetcore/security/authorization/secure-data.md +++ b/aspnetcore/security/authorization/secure-data.md @@ -67,6 +67,13 @@ This tutorial is advanced. You should be familiar with: [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. +> [!TIP] +> To only clone the subfolder, use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) command as follows: +> 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 + ### The starter app [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. From f6d40be50ac3d80c50a5ad83432fe0b8eec9d489 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:49:06 -1000 Subject: [PATCH 2/3] Update secure-data.md --- aspnetcore/security/authorization/secure-data.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/aspnetcore/security/authorization/secure-data.md b/aspnetcore/security/authorization/secure-data.md index fde322041086..6914d8ff4cfc 100644 --- a/aspnetcore/security/authorization/secure-data.md +++ b/aspnetcore/security/authorization/secure-data.md @@ -68,11 +68,14 @@ This tutorial is advanced. You should be familiar with: [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. > [!TIP] -> To only clone the subfolder, use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) command as follows: -> 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 +> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only downlowd the sample subfolder +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 +``` ### The starter app From 578e4b650346c61a3f9fba80ac0dde787c85fc3b Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 2 Dec 2024 13:54:50 -1000 Subject: [PATCH 3/3] Update aspnetcore/security/authorization/secure-data.md --- aspnetcore/security/authorization/secure-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/authorization/secure-data.md b/aspnetcore/security/authorization/secure-data.md index 6914d8ff4cfc..7ca5a8c0e54e 100644 --- a/aspnetcore/security/authorization/secure-data.md +++ b/aspnetcore/security/authorization/secure-data.md @@ -68,7 +68,7 @@ This tutorial is advanced. You should be familiar with: [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. > [!TIP] -> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only downlowd the sample subfolder +> Use [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) to only download the sample subfolder For example: ``` git clone --depth 1 --filter=blob:none https://github.com/dotnet/AspNetCore.Docs.git --sparse