You are not able to use git from a remote to interact with Bitbucket if Secure Login for Bitbucket is enabled.
We're assuming you're communicating with your workstation via SSH with Bitbucket? If this is the case, you will need to add /scm/ to the field Context whitelist in the 2FA Configuration and use SSH to connect to the repositories.
Proceed the following steps:
- Log in as system administrator in Bitbucket and go to the 2FA Configuration.
- Enter /scm/ in the field Context whitelist.
- Save the configuration.
Now you can use git per SSH e.g. on the terminal.