← Back to context

Comment by apatheticonion

2 hours ago

Another thing git isn't good at is massive codebases with long histories. IMO git should have a configuration option to pull commits lazily without the need for `--depth` and the `git fetch` dance that goes along with it.

There's `--filter=blob:none` and it allows to automatically fetch blobs when needed.

  • I wish it was as simple as `git clone <url> --lazy`

    I had previously worked on a big tech monorepo that has gigabytes of history. It would take forever to clone or do operations on. I had a cheat sheet of git commands that would do things lazily but I forget them (which is the issue).