a In the dialog box, specify the repository URL by entering or pasting a URL into
the Repository field, by selecting from the list of recent repositories, or by
clicking the Generate URL from folder button.
b Click Validate to check the repository path. If the path is invalid, check the URL
against your source control repository browser.
c If you see an authentication dialog box for your repository, enter login
information to continue.
d If necessary, select a deeper folder in the repository tree. With SVN, you might
want to check out from trunk or a branch folder under tags.
e When you have finished specifying the URL path you want to retrieve, click OK.
The dialog box closes and you return to the Create New Project from Source
Control dialog box.
(^3) In the Sandbox field, select the working folder where you want to put the retrieved
files for your new project. With SVN, use a local folder for best results, because using
a network folder is slow.
(^4) Click Retrieve.
If your repository already contains a project, the project is ready when the tool
finishes retrieving files to your selected sandbox folder.
If your sandbox does not yet contain a project, then a dialog box asks whether you
want to create a project in the folder. To create a project, specify a project name and
click OK. The Welcome screen appears to help you set up your new project. For more
information about setting up a project, see “Set up Project” on page 31-3.
If you encounter errors like OutOfMemoryError: Java heap space when cloning
large Git repositories, edit your MATLAB preferences to increase the heap size.
(^1) On the Home tab, in the Environment section, click Preferences.
(^2) Select MATLAB > General > Java Heap Memory.
(^3) Move the slider to increase the heap size, and then click OK.
4 Restart MATLAB.
Add Existing Project to Source Control
If you have an existing project, you can add it to Git or SVN source control.
To add a project to source control:
Use Source Control with Projects