-
Notifications
You must be signed in to change notification settings - Fork 4
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
Repo size is massive (82 MB); needs object pruning #7
Comments
Also, if you're okay with this, I've already run the script on my local repo; when I get acquainted well enough with the library to work on the test items for #1 the changes can likely be accepted as PR |
Also also there may be better methods to reduce the packed objects other than this. I did notice there was a number of solutions at that link, one which also looked good: " |
@jeroldhaas I foolishly had not marked my own project for watching, so I just now saw this. My apologies and thanks for contributing this issue. Going forward I have deprecated this project in favor of https://jackfoxy.github.io/FsRegEx/index.html I've already added a message about that to the nuget description of this project, and perhaps I should add an issue to that effect here. I ran the script you suggested locally on master, and the messages appear to indicate it did compress the repo, although the disk space reported by the file system remains the same. git status reports "nothing to commit, working directory clean". I suppose I would have to do a push --force to get this up to the github repo? |
I found this (more comprehensive) article on compressing/culling repo object information: http://stevelorek.com/how-to-shrink-a-git-repository.html . HTH edit: will make note to try FsRegEx when time permits |
I stumbled on this, and it amused me enough to comment. 😄 You can clone with If you care, you can remove it via force push: git checkout gh-pages
git replace --graft 10bc7bff9c54a55d928f780ef54a4261d16ceaad
git filter-branch
git push --force-with-lease origin gh-pages:gh-pages |
Suspect files are in
.git/objects/pack
.Running the script that removes unreferenced objects reduced file size to 3.0M, as seen below.
NOTE: see caveats in link above if these objects are desired to be kept in the repo's history (I'm assuming
/bin
files weren't ignored?)The text was updated successfully, but these errors were encountered: