Deduplicate git objects across forks #11763

Open
opened 2025-11-02 09:47:04 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @milahu on GitHub (Oct 2, 2023).

Feature Description

For large customers, there can be hundreds of repos that are forks of a single repository. It would be great to take advantage of something like what GitLab does using Git's alternates mechanism. This would drastically reduce the amount of storage needed for these repository forks.

same issue at sourcegraph: https://github.com/sourcegraph/sourcegraph/issues/40448

see also: https://stackoverflow.com/questions/25843553/deduplicate-git-forks-on-a-server

Screenshots

No response

Originally created by @milahu on GitHub (Oct 2, 2023). ### Feature Description > For large customers, there can be hundreds of repos that are forks of a single repository. It would be great to take advantage of something like [what GitLab does](https://docs.gitlab.com/ee/development/git_object_deduplication.html) using Git's alternates mechanism. This would drastically reduce the amount of storage needed for these repository forks. same issue at sourcegraph: https://github.com/sourcegraph/sourcegraph/issues/40448 see also: https://stackoverflow.com/questions/25843553/deduplicate-git-forks-on-a-server ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 09:47:04 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11763