Scalar – Git at scale for everyone
The simplest way to configure Git so that it works better with large repositories, apart from enabling the relevant Git features, is to use the built-in scalar
tool. This executable has been present in Git since version 2.38, which was released in 2022. Earlier, it was a separate project, then part of Microsoft’s fork of Git.
Using it is very simple: instead of using git clone
, you use scalar clone
. If the repository has already been cloned, you can run scalar register
to achieve the same result. One of the things that the command does is schedule background maintenance; you can stop this and remove the repository from the list of repositories that have been registered with scalar
by using the scalar unregister
command. The scalar delete
command unregisters the repository and removes it from the filesystem.
After a scalar
upgrade (which might be caused by moving to newer Git), you can run scalar reconfigure --all
to upgrade all...