Skip to content

[CHORE] Trim git history #542

@evanwporter

Description

@evanwporter

The git history is over 700 mb. This is pretty large. I ran the command:

# Source - https://stackoverflow.com/a/42544963
# Posted by raphinesse, modified by community. See post 'Timeline' for change history
# Retrieved 2026-03-14, License - CC BY-SA 4.0

git rev-list --objects --all --missing=print |
  git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
  sed -n 's/^blob //p' |
  grep -vF --file=<(git ls-tree -r HEAD | awk '{print $3}') |
  sort --numeric-sort --key=2 |
  cut -c 1-12,41- |
  $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest

Which outputted:

bcfd36b85f1a  1.4MiB src/consts/JSON/Pokemon.json
10666ab38558  1.4MiB src/consts/JSON/Pokemon.json
999d9ad1c0b5  1.4MiB src/consts/JSON/Pokemon.json
040abd3fa377  1.4MiB src/consts/JSON/Pokemon.json
210c6a2bc0e6  1.4MiB src/consts/JSON/Pokemon.json
cf21615b31a4  1.4MiB src/consts/JSON/Pokemon.json
59d828983d66  1.5MiB src/consts/JSON/Pokemon.json
0c2cdc3a338a  1.5MiB src/consts/JSON/Pokemon.json
62f94c53ee9b  1.5MiB src/consts/MasterPokemon.json
9132ed21035b  1.5MiB src/consts/JSON/Pokemon.json
bca4253454b1  1.5MiB src/consts/MasterPokemon.json
f6715ad3ba09  1.5MiB src/consts/MasterPokemon.json
e76658075f28  1.5MiB pkm_rs/src/resources/species/metadata.rs
5819bf003f7c  1.5MiB pkm_rs/src/resources/species/metadata.rs
d626ce1e88ff  1.6MiB src/consts/AllPokemon.json
0439d4d2272d  1.6MiB pkm_rs_resources/text_source/species.json
48969cf5e186  1.8MiB release/app/dist/main/main.js
d1f44931b797  1.9MiB public/logos/Violet.png
b81cfcf7822a  1.9MiB release/app/dist/renderer/renderer.js
95eab0bc91ef  1.9MiB public/logos/Scarlet.png
7f8435532b6b  1.9MiB pkm_rs/src/resources/species/metadata.rs
c41c510f8fa2  2.0MiB pkm_rs_resources/src/species/metadata.rs
fc940faa97c6  2.1MiB pkm_rs_resources/src/species/metadata.rs
712b3ca30b1b  2.1MiB .erb/dll/renderer.dev.dll.js
2f345427141e  2.1MiB pkm_rs_resources/src/species/metadata.rs
afe598504b34  2.1MiB pkm_rs_resources/src/species/metadata.rs
481533928f41  2.1MiB pkm_rs_resources/src/species/metadata.rs
c407383ccb32  2.1MiB pkm_rs_resources/src/species/metadata.rs
511ebed880b1  2.3MiB src/consts/JSON/Pokemon.json
c3de3558f227  2.7MiB public/logos/Blue_Green.png
0479285f2f4f  3.5MiB release/app/dist/main/main.js.map
39fbe79716b6  3.9MiB release/app/dist/renderer/renderer.js.map
439712e7f29c  5.7MiB custom-assets/logo.blend
c043de2ca77d  9.2MiB public/logos/GB.png
c9db505369ed   26MiB .erb/dll/renderer.dev.dll.js
25067a63dbab   26MiB .erb/dll/renderer.dev.dll.js
4ea829818551   26MiB .erb/dll/renderer.dev.dll.js
2891e32704f2   26MiB src/renderer/images/BoxIcons.png
589e947fd7b2   29MiB src/images/BoxIcons.png
b4bce2126514   35MiB public/icons/BoxIcons.png
609d87e05d44   35MiB src/renderer/images/icons/BoxIcons.png
d38ded949ddc   35MiB src/renderer/images/icons/BoxIcons.png

These are all files that are not present in head. So I think trim some of this down. Or maybe it doesn't matter too much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions