bot4dofus / Datafus

📚🥚 The Dofus database and socket events in JSON files. Includes the source code and more...
https://discord.gg/kNHsFcbUGp
MIT License
50 stars 13 forks source link

Remove `DofusInvoker.swf`, `*.d2o` and `*.d2i` commits and history #34

Closed LucBerge closed 11 months ago

LucBerge commented 1 year ago

The repo size is 1.12Gb.

Remove the files just like it has never been commited. https://stackoverflow.com/questions/35115585/remove-files-completely-from-git-repository-along-with-its-history

Objective: Reduce repo size

The following page should lead to an error 404 once succed

LucBerge commented 1 year ago

Branch test_34 (source):

git rm --cached data/DofusInvoker.swf
git filter-branch --index-filter 'git rm --cached --ignore-unmatch data/DofusInvoker.swf' HEAD
LucBerge commented 1 year ago

The history of binary files is not visible anymore. The current repo size is still 1.12Gb. Perhaps a garbage collection must be done.

Running git log --all --full-history -- data/DofusInvoker.swf still shows a lot of commits

LucBerge commented 11 months ago

https://www.linkedin.com/pulse/how-reduce-git-repository-size-sasan-soroush https://www.phase2technology.com/blog/removing-large-files-git-bfg

LucBerge commented 11 months ago

Current LFS storage is over the maximum 1Gb. Removing the objects must be done by recreating the repo https://docs.github.com/en/repositories/working-with-files/managing-large-files/removing-files-from-git-large-file-storage#git-lfs-objects-in-your-repository

LucBerge commented 11 months ago

https://stackoverflow.com/questions/34579211/how-to-delete-a-file-tracked-by-git-lfs-and-release-the-storage-quota