- On the main menu, choose Clone Repository dialog box opens. . The
- In the Git Repository URL text box, type the URL of the remote repository which you want to clone.
- Click the Test button next to the Git Repository URL text box to check that connection to the remote repository can be established successfully.
- In the Parent Directory text box, specify the directory where you want RubyMine to create a folder for your local Git repository. Use the Browse button button, if necessary.
- In the Directory Name text box, specify the name of the new folder into which the repository will be cloned. Click Clone.
- Create a new project based on the cloned data by accepting the corresponding suggestion displayed by RubyMine.
- Open the project you want to store in a repository.
- On the main menu, choose .
- In the dialog that opens, specify the directory where you want to create a new Git repository.
By default, RubyMine suggests the root of the current project.
Git does not support external paths. So if you choose another directory, note that it must contain the tree where the project root resides.
- Put the required files under Git version control.
The files appear in the Changes tool window under the Default node.
If you specify Git as the version control system for a directory in the Version Control dialog box, RubyMine will suggest to put each new file in this directory under Git control.