DataGrip 2023.1 Help

Clone repository

DataGrip allows you to clone (or check out, depending on version control system you use) an existing repository and create a new database based on the data you have downloaded.

You can clone a remote Git, Mercurial, or Subversion repository from the Welcome screen that opens right after launching DataGrip or from the main menu.

Clone a repository from the Welcome Screen

You can clone a remote Git, Mercurial, or Subversion repository from the Welcome screen that opens right after launching DataGrip.

Welcome Screen options

Clone a remote repository:

  1. Click Get from VCS in the upper right corner.

  2. In the Get from Version Control dialog that opens, select Git from the list.

  3. Specify the URL of the remote repository that you want to clone.

  4. In the Directory field, enter the path to the folder where your local repository will be created.

  5. Click Clone.

  1. Click Get from VCS in the upper right corner.

  2. In the Get from Version Control dialog that opens, select Mercurial from the list.

  3. Specify the URL of the remote repository that you want to clone.

  4. In the Directory field, enter the path to the folder where your local repository will be created.

  5. Click Clone.

  1. Click Get from VCS in the upper right corner.

  2. In the Get from Version Control dialog, click Add Repository Location and specify the repository URL.

  3. Click Check Out.

  4. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.

    If you are checking out sources for an existing database, the destination folder should be below the project content root.

  5. In the SVN Checkout Options dialog, specify the following settings:

    • Revision to be checked out (HEAD or a selected revision).

    • Whether you need to check out the nested directories.

    • Whether you need to include the external locations.

    Click OK.

The cloning process starts. In the list of databases, you can see the repository that you are currently cloning with the progress bar of the cloning process. Note that you can clone several repositories at the same time.

Welcome Screen with a list of projects

When the cloning process finishes, DataGrip opens the database.

Stop the cloning process

  1. Click Close on the right side of the cloning progress bar.

  2. In the Stop Cloning dialog that opens, choose Stop to stop the cloning process. If you changed you mind, choose Cancel to continue the cloning process.

    Stop cloning dialog

Clone failed

If there is an error during the cloning process, a notification in the bottom-right corner will warn you about it.

Notification about failed clone

Clone a repository from the main menu

  1. From the main menu, choose Git | Clone.

  2. In the Get from Version Control dialog that opens, select Git from the list.

  3. Specify the URL of the remote repository that you want to clone.

  4. In the Directory field, enter the path to the folder where your local repository will be created.

  5. Click Clone.

  1. From the main menu, choose VCS | Get from Version Control.

  2. In the Get from Version Control dialog that opens, select Mercurial from the list.

  3. Specify the URL of the remote repository that you want to clone.

  4. In the Directory field, enter the path to the folder where your local repository will be created.

  5. Click Clone.

  1. From the main menu, choose VCS | Get from Version Control.

  2. In the Get from Version Control dialog, click Add Repository Location and specify the repository URL.

  3. Click Check Out.

  4. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.

    If you are checking out sources for an existing database, the destination folder should be below the project content root.

  5. In the SVN Checkout Options dialog, specify the following settings:

    • Revision to be checked out (HEAD or a selected revision).

    • Whether you need to check out the nested directories.

    • Whether you need to include the external locations.

    Click OK.

More details about setting up local repositories:

Last modified: 21 June 2023