Main Content

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 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.

PreferenceUsage
UserSpecify your username and email in Name and Email. Doing so overrides information you already specified in your global Git configuration file.
Credentials

To configure MATLAB Online to store usernames and passwords when you use Git, select Remember credentials for the current MATLAB session.

SSHSSH 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 /MATLAB Drive/.ssh/id_rsa.pub.

Specify the Private key file by using the browser or pasting the path to your private key file. An example path is /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.

Related Topics