(^1) On the Project tab, in the Source Control section, click Use Source Control. The
Source Control Information dialog box opens.
(^2) Click the Add project to source control button. The Add to Source Control dialog
box opens.
(^3) In the Source control tool list, select the right tool for your repository.
(^4) If you are using a remote repository, click the Change button to select an existing
repository or create a new one.
- To specify an existing repository, click the Generate URL from folder button
to browse for your repository, paste a URL into the Repository field, or use the
list to select a recent repository.
To create a new repository, click the Create a repository button. For more
information about creating a new repository, see “Create New Repository” on
page 32-7.
Click Validate to check the path to the selected repository, and then click OK.
5 Click Convert to finish adding the project to source control.
The project runs integrity checks.
(^6) After the integrity checks run, click Open Project to return to your project.
The project displays details of the current source control tool and the repository
location.
7 If you created a new repository, select the Files > Modified view and click Commit
to commit the first version of your files to the new repository. In the dialog box, enter
a comment if you want, and click Submit.
If you want to merge branches with Git, you need to follow additional setup steps. For
more information, see “Set Up Git Source Control” on page 32-30.
If you want to use a version of SVN other than the built-in version, see “Set Up SVN
Source Control” on page 32-17.
Create New project in Folder Already Under Source Control
If you create a new project from a folder that is already under source control, MATLAB
can automatically add the new project to source control. After creating the project, click
the Detect button. For more information about creating a project from a folder, see
“Create Projects” on page 31-2.
31 Projects