Progress:
TIER 1 · MODULE 47· Basics

scalar

Microsoft's wrapper around partial clone + sparse-checkout + maintenance.

🎯 What & why

Microsoft's wrapper around partial clone, sparse-checkout, and maintenance — a porcelain optimized for huge monorepos. Ships with Git nowadays.

🧠 Mental model

Scalar isn't a new VCS — it's an opinionated configurator. scalar clone issues a normal git clone --filter=blob:none --no-checkout, runs git sparse-checkout init --cone, registers the repo with git maintenance, and sets a battery of perf-friendly config keys. The repo is a regular Git repo afterward.

🛠️ Synopsis

scalar clone [--single-branch] [--branch=<main-branch>] [--full-clone] [--[no-]src] <url> [<enlistment>]
scalar list
scalar register [<enlistment>]
scalar unregister [<enlistment>]
scalar run ( all | config | commit-graph | fetch | loose-objects | pack-files ) [<enlistment>]
scalar reconfigure [ --all | <enlistment> ]
scalar diagnose [<enlistment>]
scalar delete <enlistment>

🎚️ Switches & options

FlagWhat it does
clone <url>Clone with all the perf wins enabled.
register/unregisterAdd/remove a repo from scalar's maintenance list.
reconfigureRe-apply scalar's recommended settings.
diagnoseBundle diagnostic info.

💡 Use cases

🧪 Examples

Clone a giant repo with scalar's defaults.
$ scalar clone https://example.com/monorepo.git
Register an existing repo.
$ scalar register ~/work/monorepo

🎓 Recommendations

🪤 Common pitfalls

🔗 Related modules

📝 Quiz

Hit each option, then Check answers. Score is recorded; Next is always open.