Skip to content

Conversation

@danuw
Copy link
Contributor

@danuw danuw commented Nov 28, 2024

Adding a tip to ensure the visitor of trying to run through this guide can git clone only the sub folders needed for this tutorial from the docs for an even more lightweight and faster experience (For context, I was trying to do this on the train and internet was patchy and this simply helped get me progressing as I could not get the full repo downloaded otherwise).

I used this to ensure I was using the right syntax https://learn.microsoft.com/en-us/contribute/content/markdown-reference#alerts-note-tip-important-caution-warning

Fixes #34264


Internal previews

📄 File 🔗 Preview link
aspnetcore/security/authorization/secure-data.md aspnetcore/security/authorization/secure-data

Adding a tip to ensure the visitor can git clone only the sub folders needed for this lab from the docs
Comment on lines 72 to 75
> 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Rick-Anderson was there a comment to resolve please?

@danuw
Copy link
Contributor Author

danuw commented Dec 2, 2024

Thank you for the update. "download" shows with an extra 'w' btw. Sorry about that

@Rick-Anderson Rick-Anderson enabled auto-merge (squash) December 2, 2024 23:55
@Rick-Anderson
Copy link
Contributor

@danuw that's super helpful, thanks so much.

@Rick-Anderson Rick-Anderson merged commit cd4c1c4 into dotnet:main Dec 2, 2024
3 checks passed
@danuw
Copy link
Contributor Author

danuw commented Dec 2, 2024

My pleasure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use git sparse-checkout

2 participants