Connecting GitLab account to IntelliJ IDEA
-
Select the Customize tab and click the All Settings button to open the full settings dialog box.
-
Select Settings > Version Control > GitLab and click Add Account.
-
The following dialog box will open prompting for a Token. Click the generate button.
-
A browser window will open to gitlab.com. Enter your GitLab credentials and log in.
-
Once logged into GitLab you will be taken to the following Generate Token page. Click Add new Token.
-
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.
-
In the following page you can view and copy the generated token by clicking the indicated button,
-
Go back to IntelliJ and enter the copied token and click Log In.
-
If successful, your GitLab account will show up as a connected account.
-
Click Apply and you should be taken back to the home screen from step 1.