-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Consider cleaning up the .git
folder to reduce the large repo size
#160
Comments
Is there a way I can do this for other people? I just ran these locally but I don't think it did anything for pushing... haha I'm not an expert in this area of git |
Yes, after cleaning it should be enough to do Edit: it will rewrite all the commits because of the |
Just a small data point: the slow download is in fact an issue with Telescope's |
Maybe https://github.com/newren/git-filter-repo is a better approach?
This will still rewrite history, of course, breaking current clones (and PRs), though. |
OK, I dug a little deeper. The issue is that |
And it's (only) the |
Hey, I've had to clone the repository again, and have found that it's a bit heavy (~12MB) even to download and can cause it to fail on slow connections with the default packer settings (60s timeout).
After doing a little search I have found that it's a
nvim.appimage.1
file that doesn't exist and that it's stored in the.pack
file.Here are the steps I took and how to reduce the repository size locally by up to 90% (1.2MB), all steps must be done from the repository root:
943f15
):git filter-branch --index-filter 'git rm --cached --ignore-unmatch nvim.appimage.1' -- --all rm -Rf .git/refs/original rm -Rf .git/logs/ git gc --aggressive --prune=now
size-pack
, should be a lot smaller now:The text was updated successfully, but these errors were encountered: