Skip to content

Repository clone is over 1 GB due to generated binaries in history #786

Open

Description

@ZacharyZcR

A fresh clone is much larger than the current source tree:

  • checkout: about 1.1 GB
  • .git: about 1.0 GB
  • current files outside .git: about 50 MB

Most of the Git data appears to come from old generated mobile binaries, including:

  • flutter/android/jniLibs.zip (about 100 MB per revision)
  • Android libcactus*.so files (about 40–45 MB per revision)
  • cactus.xcframework.zip files (about 15 MB per revision)

Could these generated archives be kept out of Git and published through releases or CI artifacts instead?

Adding ignore rules can prevent the repository from growing again. Reducing the existing clone size would also require a maintainer-coordinated history rewrite, since deleting files in a new commit does not remove their old blobs.

Activity

  1. ZacharyZcR commented on Aug 14, 2026

    @ZacharyZcR
    Author

    Also, maybe we need to clean up the branches? There are currently over 300 branches.

  2. Udit8348 commented on Aug 21, 2026

    @Udit8348

    Yeah, branches are a common culprit and a good, straightforward first step to take.

    Recently I read about this issue in another repo, there could be some useful insights here: NVIDIA/accelerated-computing-hub#184

  3. tandy-1000 commented on Aug 28, 2026

    @tandy-1000

    The BFG Repo Cleaner is also an option, but is a breaking change as it involves rewriting the history to remove large files from git history.

    This would solve part of the issue though, given there are large binaries in the history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions