Limit history to shrink project/repo size

My project repo is growing so big that Openshift cannot clone. Maybe because I have a 350MB tgz file which is often modified at each git push. How can I limit the history size of the Gitlab project so it won’t keep all versions of this file? Or set Gitlab to forget everything that is older than one month?

I read but I think it’s not what I want. I want to keep some versions of the big files, not to erase them all.