We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e86336 commit dcaf21fCopy full SHA for dcaf21f
pages/common/git-sparse-checkout.md
@@ -0,0 +1,20 @@
1
+# git sparse-checkout
2
+
3
+> Check out only part of a repository’s files instead of cloning or checking out everything.
4
+> More information: <https://manned.org/git-sparse-checkout>.
5
6
+- Enable sparse checkout:
7
8
+`git sparse-checkout init`
9
10
+- Disable sparse-checkout and restore full repository:
11
12
+`git sparse-checkout disable`
13
14
+- Specify which directories (or files) to include:
15
16
+`git sparse-checkout set {{path/to/directory}}`
17
18
+- Add more paths later:
19
20
+`git sparse-checkout add {{path/to/directory}}`
0 commit comments