Skip to content

Instantly share code, notes, and snippets.

@foobarbaz-pl
Created February 22, 2021 10:11
Show Gist options
  • Save foobarbaz-pl/243b458042d92c1e7048daf06923d03d to your computer and use it in GitHub Desktop.
Save foobarbaz-pl/243b458042d92c1e7048daf06923d03d to your computer and use it in GitHub Desktop.
Git Sparse Checkout
git clone --no-checkout <REPOSITORY> <DIR>
cd <DIR>
git sparse-checkout init --cone # checkout root dir files
git sparse-checkout set <SUBDIR_LIST> # subdirs list to include
git checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment