Git

Access Gitlab from local using two factor token

How to push changes to Gitlab, when two factor authentication is enabled.

Chirag S P
When two factor authentication is enabled in Gitlab, we get authentication error when we try to push changes from our local to Gitlab. The error look like something as shown below, remote: HTTP Basic: Access denied To be able to push to Gitlab, we need to setup personal token in Gitlab and set it up in our local Git project as well. In Gitlab go to User Profile at top right end,