Created
October 11, 2021 19:36
-
-
Save BDF/347ffb2989b161a4840c320e72bc8f74 to your computer and use it in GitHub Desktop.
git Sparse Checkout.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Copied from: | |
# https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/ | |
% git clone --no-checkout https://github.com/derrickstolee/sparse-checkout-example --depth 1 | |
% cd sparse-checkout-example/ | |
% git sparse-checkout init --cone | |
# git sparse-checkout init to skip top level files. | |
% git sparse-checkout set <DIR1> <DIR2> | |
# git co <BRANCH> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment