In all versions of GitLab CE/EE since version 11.0, the requirement to enforce 2FA is not honored when using git commands.
{ "binaries": [ { "binary_name": "gitlab", "binary_version": "8.5.8+dfsg-5" } ] }