I have enable Two-Factor Authen in gitlab, everytime I do git push a box below show and I cannot login, no input for enter 2FA code. Now I turn 2FA off for continue work.

How to login when enable Two-Factor Authen in gitlab

enter image description here

1 Answer 1


I find the guide:

Log in to your GitLab account.
Go to your Profile Settings.
Go to Access Tokens.
Choose a name and expiry date for the token.
Click on Create Personal Access Token.
Save the personal access token somewhere safe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.