Connecting GitLab account to IntelliJ IDEA

  1. Select the Customize tab and click the All Settings button to open the full settings dialog box.

    JetBrains
  2. Select Settings > Version Control > GitLab and click Add Account.

    JetBrains
    JetBrains
  3. The following dialog box will open prompting for a Token. Click the generate button.

    JetBrains
  4. A browser window will open to gitlab.com. Enter your GitLab credentials and log in.

  5. Once logged into GitLab you will be taken to the following Generate Token page. Click Add new Token.

    JetBrains
  6. In the following page you will have the option to fine tune the permissions and duration of the token you are about to generate. Update the expiration date to a reasonable date in the future (~3 months) and confirm the 2 boxes in the screenshot are selected. Finally, click Create personal access Token.

    JetBrains
  7. In the following page you can view and copy the generated token by clicking the indicated button,

    JetBrains
  8. Go back to IntelliJ and enter the copied token and click Log In.

    JetBrains
  9. If successful, your GitLab account will show up as a connected account.

    JetBrains
  10. Click Apply and you should be taken back to the home screen from step 1.