Set up a local Mercurial repository
Although Mercurial provides high flexibility in arranging data and your work with repositories, the following scenarios are most commonly used for setting up a local Mercurial repository:
-
Clone an existing remote repository and create a new project with the downloaded data.
-
Create a local repository which you can push to a remote location later, if necessary.
Clone a remote Mercurial repository
-
Go to .
The Get from Version Control dialog opens.
-
In the dialog that opens, select Mercurial from the Version control list and specify the URL of the remote repository you want to clone.
-
Click Clone. If you want to create a DataGrip project based on the sources you have cloned, click Yes in the confirmation dialog.
Create a local Mercurial repository
-
Open the project you want to store in a repository.
-
In the main menu, go to .
-
Specify the location of the new repository.
When the repository has been created, you will see a notification.
-
Put the required files under Mercurial version control. The uncommitted files appear in the Commit to <branch name> tab of the Commit tool window (Alt+0).
Note that if you specify Mercurial as the version control system for a directory in the Version Control dialog, DataGrip will suggest to put each new file in this directory under Mercurial control.