Stop GitLab from storing every commit in history

Is there a setting to disable GitLab from saving every commit in the history? We normally save a good amount of binary files and the .git folder is fulling up quickly.