Two things:
1. 2FA does not require your phone number.
2. If you don't already, you should use a public key for pushing your commits
It's highly unlikely that you lose commit access even if you don't complete the "enrollment" unless you use http authentication for pushing commits in which case you should realize that password security is a huge liability for any big web application and I recommend you reconsider your approach.