From eba242150ad2203fcc661b80bd457b0b2780be08 Mon Sep 17 00:00:00 2001 From: sahil afrid farookhi Date: Mon, 6 Oct 2025 22:01:29 -0500 Subject: [PATCH 1/2] add git-sparse-checkout page --- pages/common/git-sparse-checkout.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/git-sparse-checkout.md diff --git a/pages/common/git-sparse-checkout.md b/pages/common/git-sparse-checkout.md new file mode 100644 index 00000000000000..1e099939592245 --- /dev/null +++ b/pages/common/git-sparse-checkout.md @@ -0,0 +1,20 @@ +# git sparse-checkout + +> Check out only part of a repository’s files instead of cloning or checking out everything. +> More information: . + +- Enable sparse checkout: + +`git sparse-checkout init` + +- Disable sparse-checkout and restore full repository: + +`git sparse-checkout disable` + +- Specify which directories (or files) to include: + +`git sparse-checkout set {{path/to/folder}}` + +- Add more paths later: + +`git sparse-checkout add {{path/to/folder}}` From f1a5c7a96689c91737829487c9552878ee709d48 Mon Sep 17 00:00:00 2001 From: Sahil Afrid Farookhi Date: Mon, 6 Oct 2025 23:15:10 -0500 Subject: [PATCH 2/2] replace folder with directory for consistency Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/git-sparse-checkout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/git-sparse-checkout.md b/pages/common/git-sparse-checkout.md index 1e099939592245..84c30e42d6362b 100644 --- a/pages/common/git-sparse-checkout.md +++ b/pages/common/git-sparse-checkout.md @@ -13,8 +13,8 @@ - Specify which directories (or files) to include: -`git sparse-checkout set {{path/to/folder}}` +`git sparse-checkout set {{path/to/directory}}` - Add more paths later: -`git sparse-checkout add {{path/to/folder}}` +`git sparse-checkout add {{path/to/directory}}`