Set Source Control Preferences
MathWorks® source control integration, accessible through Projects and the Current Folder browser, is on 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
folder. You can put the folder back under source control by
enabling the source control integration again.
Set Git Preferences in MATLAB Online
In MATLAB Online™, you can use the Git™ source control preferences to specify your user name 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, adjust preference options as described in this table.
Preference | Usage | |
---|---|---|
User | Specify your user name and email in Name and Email. This overrides information you already specified in your global Git configuration file. | |
Credentials | To configure MATLAB Online to remember user names and passwords when using 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. This 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. | |
To specify the Public key file, browse to
or paste the path to your public key file. For example,
| ||
To specify the Private key file, browse to or
paste the path to your private key file. For example, /MATLAB
Drive/.ssh/id_rsa . | ||
To enable the use of a pass-phrase and receive a prompt once per session, select Key is pass-phrase protected. |