Here is the problem:
I created bare git repository at my hosting partner place, which I use as the reference repository from all the locations/computers I maintain my project from.
The thing is that my project is using a sqlite db file, which keeps growing regularly (it is about 150MB for now). As time is passing, my .git folder is getting bigger and bigger (lately around 1GB). And my hosting space is limited.
I need the bare repository to contain the HEAD version of this db file but I really do not need to keep its version history.
So, to gain some space, from time to time, I remove the db file from the history, clean the repository and recreate the bare version. This works, but is quite a pain.
Is there a way to tell git to keep only the last version of a file and drop its history?