You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using large project with many modules (AKA monorepo) being able to do sparse checkouts (supported since git 2.25.x) would be very helpful.
Example
Repo containing:
scripts
tools
modules/mobile-client
modules/server
modules/web
We want to only checkout and build the mobile-client (nice when combined with paths/paths_ignore).
So the equivalent of git sparse-checkout init --cone && git sparse-checkout set modules/mobile-client scripts tools would be:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Support sparse checkouts
Purpose
When using large project with many modules (AKA monorepo) being able to do sparse checkouts (supported since git 2.25.x) would be very helpful.
Example
Repo containing:
We want to only checkout and build the mobile-client (nice when combined with paths/paths_ignore).
So the equivalent of
git sparse-checkout init --cone && git sparse-checkout set modules/mobile-client scripts tools
would be:Ref: https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/
Beta Was this translation helpful? Give feedback.
All reactions