sertit / eoreader

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way.
https://eoreader.readthedocs.io/en/latest/
Apache License 2.0
278 stars 22 forks source link

Lighten the git history #89

Open bastiencyr opened 1 year ago

bastiencyr commented 1 year ago

Hello @remi-braun, The git history is pretty heavier (almost 300 Mo). By analyzing the git repo, I noticed that some files should never have been pushed. But it's up to you to decide if it is important to keep in the history. We can easily reduce the size to 90Mb with a single command:

git-filter-repo --invert-paths --path docs/jupyter_execute --path CI/DATA --path CI/COTS --path eoreader/examples 

Notice that all this files will never been accessible in the git history. It means that if you checkout on an old branch, there will be no way to get back this folders.

You can find a complete report here: eoreader_analysis.zip

After cleaning, the heaviest folder is "docs" (86 Mo). There are different solutions but maybe it's better to go step by step.

bastiencyr commented 1 year ago

On gitlab : https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html