GitLab
Enable the Git plugin
This functionality relies on the Git plugin, which is bundled and enabled in DataGrip by default. If the relevant features aren't available, make sure that you didn't disable the plugin.
Press Control+Alt+S to open the IDE settings and then select
.Open the Installed tab, find the Git plugin, and select the checkbox next to the plugin name.
Install the GitLab plugin
This functionality relies on the GitLab plugin, which you need to install and enable.
Press Control+Alt+S to open the IDE settings and then select
.Open the Marketplace tab, find the GitLab plugin, and click Install (restart the IDE if prompted).
With DataGrip, you can:
Access your GitLab projects without leaving the IDE.
Clone projects hosted on GitLab.
Manage GitLab accounts
To retrieve data from a project hosted on GitLab or share your projects, you need to log in to your GitLab account in DataGrip.
Log in to GitLab
Press Control+Alt+S to open the IDE settings and then select
.Click . The Log In with Access Token dialog will open:
In the dialog, do one of the following:
If you already have a token, insert it in the Token field.
If you have no token, click Generate.
In the token generation page that opens, make sure that the
api
andread_user
scopes are selected.Click Create personal access token, copy the token, and paste it into the Log In with Access Token dialog window.
Click Log In.
See Personal access tokens for more details on GitLab tokens.
Manage multiple GitLab accounts
You can use multiple GitLab accounts in DataGrip: for example, a personal account to work on an open-source project, and a corporate account for your main job.
Press Control+Alt+S to open the IDE settings and then select
.Use the button to add as many accounts as you need.
To set an account as the default one for the current project, select it and click .