in gitlab you can set this up in the "Account and limit settings" section https://docs.gitlab.com/ee/administration/settings/account_and_limit_settings.html – "Maximum push size (MiB)" parameter