Skip to content

Commit dcaf21f

Browse files
authored
git-sparse-checkout: add page (#18526)
1 parent 4e86336 commit dcaf21f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)