The git repository of my current project, containing source code and image files, measures around 1.2 gigabytes. But the the actual files of all branches are only around 205 megabytes in size.
I am a beginner with git and I guess that the huge repository size is caused by moving the image files around in the repository. Since git doesn't catch moved files, it stores the image at its old location in the history along with the image at its new location. I am not sure if that could cause such a big overhead.
Anyway, how can I reduce the repository size without loosing the history of source code files? It is acceptable for me to loose the history of image files.