waschinski / photo-stream

Self-hosted, super simple photo stream
https://github.com/waschinski/photo-stream
MIT License
448 stars 68 forks source link

git history of this repository is too huge #67

Closed nicosomb closed 1 year ago

nicosomb commented 1 year ago

I just cloned a fork of this project on my computer and the .git folder weighs 368M. The whole folder weighs 388M. It's due to old pictures used with the demo of this project.

I think that a cleanup is necessary in the git history.

You can have a look to this documentation to know how do that https://www.phase2technology.com/blog/removing-large-files-git-bfg

I was going to do it, but I don't know what you want to keep.

waschinski commented 1 year ago

Thanks for bringing this to our attention.

Long ago we did some cleanup on the docker image and managed to reduce the image size by a lot (it used to be more than 1GB due to similar reasons) but we didn't really look at the git history.

waschinski commented 1 year ago

I stripped everything bigger than 2MB.

du -hs photo-stream/.git
375M    photo-stream/.git

du -hs photo-stream-new/.git
 61M    photo-stream-new/.git

Looks good?! :)

nicosomb commented 1 year ago

nice!