-
Notifications
You must be signed in to change notification settings - Fork 696
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
[Question] Repo size not shrinking after using --invert-paths #573
Comments
It sounds like you took a guess at what was taking up space and removed some files, but a lot of your space is in other files. Run |
Managed to get the desired result by doing:
Resulting in our repo going from 13.2gb to 150mb. This means losing the entire history for that specific folder but that is a sacrifice were are willing to make. |
Any chance you were using CMD to run your commands? If so, the problem may be that you used single quotes (
to
that might have fixed things for you. Apparently (as I learned in #435), the former will cause CMD to tell git-filter-repo that you want to remove files matching To my knowledge, this is unique to CMD; single quotes work fine in any other shell and don't do this crazy weirdness. |
No, I was using the Powershell terminal from within VScode. |
Well, in that case, I'd suggest adding a That said, it sounds like you did find a solution, so if you don't want to debug further that's fine. But if you'd like to know what happened, the --debug output is the next piece of output I'd need. |
In the past my team stored reports including data in our Azure DevOps Git repo which resulted in a size of 13.2gb. Thankfully we've seen the light and bettered our ways last year so the repo currently hasn't contained any reports with data for a while now. I wanted to use your tool to also remove any history of the files for the sake of repo size and security. Unfortunately I haven't been able to reduce the size of the pack files so far. I must admit I am far from a Git Guru so assume my knowledge is very limited :)
What I've done:
git clone --mirror
python $gfr --invert-paths --path-glob '*/cache.abf'
andpython $gfr --invert-paths --path-glob '*.pbix'
(these are the file types that hold the data)The logging for your tool gives me the impressions that any old and unneeded files are cleaned before repacking but maybe I've missed some flag or git command I'm supposed to run.
The text was updated successfully, but these errors were encountered: