Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pages/common/git-sparse-checkout.md
Original file line number Diff line number Diff line change
@@ -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: <https://manned.org/git-sparse-checkout>.

- 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}}`