Set Source Control Preferences
MathWorks® source control integration, accessible through Projects and the Current Folder browser, is enabled by default.
To disable source control, on the Home tab, in the Environment section, click Preferences. Select MATLAB > General > Source Control and click None.
When you disable source control, MATLAB® does not destroy repository information. For example, it does not remove the
.svn
folders.
Source Control Preferences in MATLAB Online
In MATLAB Online™, you can use the general source control preferences to specify the default location of new working folders and disable MathWorks source control integration.
On the Home tab, in the Environment section, click Preferences. Select MATLAB > Source Control. Then, set your preferences.
To set Git™-specific source control preferences, see Set Git Preferences in MATLAB Online.
Preference | Usage | |
---|---|---|
New Working Folder | When you interactively clone or check out a working copy from a repository, by default, MATLAB Online downloads files into the currently opened folder. To use a folder of your choice, select Use specified folder and specify the folder by using the browser or pasting the path. | |
Source Control Integrations | In MATLAB Online, MathWorks source control integration, accessible through Project browser and the Current Folder browser, is enabled by default. To disable MathWorks source control integration, clear Enable source control. When you disable source
control, MATLAB
Online does not destroy repository information. For example,
it does not remove the | |
If you want to use other source control tools such as Perforce® P4V with MATLAB instead of the built-in source control integration, write your own source integration using the Software Development Kit (SDK) available on File Exchange and make sure you select Enable 3rd-party source control integrations (requires Java). For more information, see Write a Source Control Integration with the SDK. |
Set Git Preferences in MATLAB Online
In MATLAB Online, you can use the Git source control preferences to specify your username and email, remember credentials for the current MATLAB session, and enable SSH authentication.
On the Home tab, in the Environment section, click Preferences. Select MATLAB > Source Control > Git. Then, set your preferences.
Preference | Usage | |
---|---|---|
User | Specify your username and email in Name and Email. Doing so overrides information you already specified in your global Git configuration file. | |
MATLAB Git integration is configured by default to Generate local avatars using your initials. An avatar appears next to your username and email in the Branch Manager. If you have a globally recognized avatar, you can enable MATLAB to Retrieve avatars from web services such as gravatar.com. To disable the usage of avatars, select None instead. | ||
Credentials | To configure MATLAB Online to store usernames and passwords when you use Git, select Remember credentials for the current MATLAB session. | |
SSH | SSH authentication is disabled by default in MATLAB Online. To enable the use of SSH keys, select Enable SSH. Using this option requires you to store the public and private key files on MATLAB Drive. Make sure your Key is pass-phrase protected when you generate your SSH keys. | |
Specify the Public key file by using
the browser or pasting the path to your public key file. An
example path is | ||
Specify the Private key file by using
the browser or pasting the path to your private key file. An
example path is | ||
To enable the use of a pass-phrase and receive a prompt once per session, select Key is pass-phrase protected. | ||
To use multiple keys, use an SSH agent. In the SSH section, select If running, use SSH agent instead of the specified key. If an SSH agent is running, MATLAB Online looks for keys in the agent before using the keys you specified in Public key file and Private key file. | ||
Branch Manager | To control the number of commits that the Branch Manager shows, specify the Maximum number of commits to show. |