In all versions of GitLab CE/EE since version 11.0, the requirement to enforce 2FA is not honored when using git commands.
https://hackerone.com/reports/898477
https://gitlab.com/gitlab-org/gitlab/-/issues/222527
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39874.json