3 ms·
I'm working on a huge monorepo hosted on GitHub and using Git. I just wanna say at some scale Git stops being fast and GitHub doesn't have the tools needed for
by msoad 5y ago
I'm working on a huge monorepo hosted on GitHub and using Git. I just wanna say at some scale Git stops being fast and GitHub doesn't have the tools needed for a monorepo. This is a 10 million lines of code monorepo. Not that big. I wonder how Microsoft manages to use Git for Windows. My git status takes 2 seconds to return!
- yjftsjthsd-h 5y ago> I wonder how Microsoft manages to use Git for Windows. They created an entire framework on top of it:) It's actually decently publically documented, if memory serves
- msoad 5y agoI worked at Google before. They also built a custom framework on top of SVN(I think) with a git CLI interface and custom FS hooks. At some point Git has to just adopt those techniques so it is usable for large repos.
- da39a3ee 5y agoGit can be used in monorepos. The problem is often that people don't put in the effort to configure it (or configure their aliases, or per-repo gitconfig) so that it's not slow; they just accept that slowness is inevitable. I think that your slow `git status` may be due to untracked file detection: try `git status --untracked-files=no`