Interview Prep/Git & GitHub/Monorepos, large files and repository performance

What is a reference clone and when does it help?

IntermediateProductionMonorepos, large files and repository performance
Answer

git clone --reference /cache/repo.git borrows objects from a local mirror, so many CI workspaces on one host fetch only what is missing. It speeds up self-hosted runners but couples workspaces to the cache's life, so use --dissociate if the workspace must stand alone.

All Git & GitHub questions Roadmap: Git & GitHub

More on Monorepos, large files and repository performance