-
Notifications
You must be signed in to change notification settings - Fork 832
clean up repo to reduce size #2479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @aaravgarg, I've worked out how to significantly reduce the repository size using Git LFS with the following file patterns being tracked:
I have reworked the entire git history to apply this properly. Without history rework, there is no effective way to reduce the repository size. Here is proof of the cloning process output:
I’ve also updated the documentation ( Cloning Repository Without Downloading All LFS FilesBecause some files tracked by Git LFS can be very large, cloning the full repo may take a long time or consume lots of bandwidth. To avoid downloading all large files immediately, you can clone the repository with only LFS pointer files (placeholders) using: GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/BasedHardware/Omi.git Then, when you need the actual large files, run: git lfs pull To download only specific large files or directories, use: git lfs pull -I "path/to/large/file1" -I "path/to/large/dir/*" Replace This keeps your initial clone lightweight and lets you fetch only the LFS files you need. All these changes are hosted in a non-fork repository because GitHub does not allow pushing rewritten history and new LFS objects to a public fork. Here is the cleaned and restructured repository: Unfortunately, GitHub doesn’t allow PRs from non-fork repos! Also note: Accepting this history rewrite means all existing forks will need to be re-synced, and contributors will have to:
Let me know how we can go ahead with this! I'm happy to coordinate or adjust as needed. |
there are too many large files (eg. photos & videos) in the repo
these need to be stored in a better and optimized way coz rn the repo takes forever to clone
The text was updated successfully, but these errors were encountered: