(^5) Close the Branches dialog box and work on the files on your branch.
For next steps, see “Pull, Push and Fetch Files with Git” on page 32-45.
Switch Branch
(^1) From within your Git repository folder, right-click the white space of the Current
Folder browser and select Source Control > Branches.
(^2) In the Branches dialog box, in the Branches drop-down list, select the branch you
want to and click Switch.
(^3) Close the Branches dialog box and work on the files on your branch.
Compare Branches
From within your Git repository folder, right-click the white space of the Current Folder
browser and select Source Control > Branches. In the Branches dialog box, to examine
differences from the parent, right-click a file in the tree under Differences from
parent and select Show Difference. MATLAB opens a comparison report.
If you want to examine added or deleted files, or to test how the code ran in previous
versions, you can save a copy of the selected or parent files. Right-click a file and select
Save As or Save Parent As.
Merge Branches
Before you can merge branches, you must install command-line Git on your system path
and register binary files to prevent Git from inserting conflict markers. See “Install
Command-Line Git Client” on page 32-31.
TipAfter you fetch changes, you must merge. For more information, see “Fetch and
Merge” on page 32-46.
To merge any branches:
(^1) From within your Git repository folder, right-click the white space of the Current
Folder browser and select Source Control and Branches.
(^2) In the Branches dialog box, from the Branches drop-down list, select a branch you
want to merge into the current branch, and click Merge.
32 Source Control Interface
やまだぃちぅ
(やまだぃちぅ)
#1