menu_book Course Curriculum (Git Version Control) expand_more
Repository Foundations
Branches & Merging
History Editing
Remote Collaboration
Selective Workflows
Objects & Internals
Configuration & Hooks
Sparse checkout
Learn Sparse checkout in Git Version Control with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
git-040.sh
shell
rm -rf /tmp/sx-git-40; git init -q /tmp/sx-git-40; cd /tmp/sx-git-40; git config user.name Syntaxis; git config user.email lesson@example.test; printf "base\n" > app.txt; git add app.txt; git commit -qm base; mkdir docs src; echo d > docs/a; echo s > src/a; git add .; git commit -qm dirs; git sparse-checkout init --cone; git sparse-checkout set src
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content