Reduce github repository size
See original GitHub issueOur .git
starts to grow too fast, now. We discussed recently about that with @y0ast and repository size was ~500MB which is rather large. Now, it is 700MB:
/tmp/ignite# du -h -a -d 1
705M ./.git
4.0K ./codecov.yml
4.0K ./.gitignore
28K ./.circleci
4.0K ./CODE_OF_CONDUCT.md
4.0K ./pyproject.toml
916K ./ignite
4.0K ./requirements-dev.txt
4.0K ./CITATION
92K ./docker
1.2M ./assets
28K ./README.md
4.0K ./LICENSE
12K ./CONTRIBUTING.md
120K ./.github
4.0K ./setup.py
528K ./docs
1.2M ./tests
4.0K ./.pre-commit-config.yaml
15M ./examples
12K ./conda.recipe
4.0K ./setup.cfg
4.0K ./mypy.ini
723M .
That time I looked into ressources about reducing the size and it works locally, but it would be helpful to do that on GitHub as well.
Local compressing works:
/tmp/ignite# git gc --aggressive
/tmp/ignite# du -h -a -d 1
112M ./.git
4.0K ./codecov.yml
4.0K ./.gitignore
28K ./.circleci
4.0K ./CODE_OF_CONDUCT.md
4.0K ./pyproject.toml
916K ./ignite
4.0K ./requirements-dev.txt
4.0K ./CITATION
92K ./docker
1.2M ./assets
28K ./README.md
4.0K ./LICENSE
12K ./CONTRIBUTING.md
120K ./.github
4.0K ./setup.py
528K ./docs
1.2M ./tests
4.0K ./.pre-commit-config.yaml
15M ./examples
12K ./conda.recipe
4.0K ./setup.cfg
4.0K ./mypy.ini
131M .
but I have no idea how to apply that to remote
…
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Reduce git repository size - Stack Overflow
How do I reduce my repo size...it's about 10 MB, but the thing is Heroku only allows 50 MB and I'm no where...
Read more >Reduce repository size - GitLab Docs
Purge files from repository history · Install either git filter-repo or git-sizer using a supported package manager or from source. · Generate a...
Read more >Cleaning up a git repo for reducing the repository size - Medium
To reducing storage space, you have to rewrite your git history. Note that re-writing git history is a very much important task and...
Read more >About large files on GitHub
Repository size limits ... We recommend repositories remain small, ideally less than 1 GB, and less than 5 GB is strongly recommended. Smaller...
Read more >The Gitential Guide on How to Reduce the Size of Your Git ...
Think about how to logically organize your git repositories from the very beginning. · Set a repo size limit in your repository management ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🎉 I think #1764 has solved the problem 🎉
Thanks again @y0ast for finding the issue ! Very grateful to you !
I think I found a smoking gun:
The gh-pages branches: https://github.com/pytorch/ignite/tree/gh-pages Has many many commits: https://github.com/pytorch/ignite/commits/gh-pages
Containing many small files: https://github.com/pytorch/ignite/commit/8b7dda3a88ae7d4c4cbd1ea489ec16cc7529208f And 14 individual 3MB files (all `.pickle), like this: https://github.com/pytorch/ignite/blob/8b7dda3a88ae7d4c4cbd1ea489ec16cc7529208f/master/.doctrees/environment.pickle
That’ ~40MB of additions to the
.git
folder every time the website is deployed (which is for every commit on master!)So I think a new approach for publishing the website should be considered.