Update SVN File Status and Revision . . . . . . . . . . . . . . . . . . . . . . .
33-21
Refresh Status of Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-21
Update Revisions of Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-21
Get SVN File Locks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-22
Manage SVN Repository Locks . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-22
Set Up Git Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-23
Configure MATLAB on Windows . . . . . . . . . . . . . . . . . . . . . . . . . . 33-23
Use SSH Authentication with MATLAB . . . . . . . . . . . . . . . . . . . . . 33-23
Register Binary Files with Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-24
Configure Git Credential Helper . . . . . . . . . . . . . . . . . . . . . . . . . . 33-25
Add Git Submodules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-26
Update Submodules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-26
Use Fetch and Merge with Submodules . . . . . . . . . . . . . . . . . . . . 33-26
Use Push to Send Changes to the Submodule Repository . . . . . . . 33-26
Retrieve Files from Git Repository . . . . . . . . . . . . . . . . . . . . . . . . . . 33-28
Update Git File Status and Revision . . . . . . . . . . . . . . . . . . . . . . . . 33-29
Refresh Status of Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-29
Update Revisions of Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-29
Branch and Merge with Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-30
Create Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-30
Switch Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-31
Compare Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-32
Merge Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-32
Revert to Head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-33
Delete Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-33
Pull, Push and Fetch Files with Git . . . . . . . . . . . . . . . . . . . . . . . . . 33-34
Pull and Push . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-34
Fetch and Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-35
Use Git Stashes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-35
Move, Rename, or Delete Files Under Source Control . . . . . . . . . . 33-37
Customize External Source Control to Use MATLAB for Diff and
Merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-38
Finding the Full Paths for MATLAB Diff, Merge, and AutoMerge . . 33-38
Integration with Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-39
Integration with SVN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-40
Integration with Other Source Control Tools . . . . . . . . . . . . . . . . . 33-41
MSSCCI Source Control Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 33-43
Set Up MSSCCI Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-44
Create Projects in Source Control System . . . . . . . . . . . . . . . . . . . 33-44
Specify Source Control System with MATLAB Software . . . . . . . . 33-45
Register Source Control Project with MATLAB Software . . . . . . . . 33-46
Add Files to Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-48
xxviii Contents