Open jeroldhaas opened 7 years ago
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: "git-repack -a
followed by git-prune-packed
" for example. I tried the topmost.
@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. :smile:
You can clone with --single-branch
or --depth
to avoid it, but the big objects are in the history of the gh-pages branch at e656761946d7d04380f95a6de286925278335133.
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?)