Original link: How we shrunk our Javascript monorepo git size by 94% / Jonathan Creamer.
I don't think it is important that it is a JavaScript repo.