MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Action Procedure


Create Git stashes. Git stashes store uncommitted changes for later use. To
create a stash, on the Project tab, in the Source Control
section, click Stashes. The Stashes dialog box opens. Click
New Stash to create a stash containing your currently
modified files. For more information, see “Use Git Stashes”
on page 32-47.


Create a branch with Git. To create a branch, on the Project tab, in the Source
Control section, click Branches. The Branches dialog box
appears, where you can view, switch, create, and merge
branches.


Select a source for the new branch. Click a node in the
Branch Browser diagram, or enter a unique identifier in
the Source text box. You can enter a tag, branch name, or a
unique prefix of the SHA1 hash (for example, 73c637) to
identify a specific commit. Leave the default values to
create a branch from the head of the current branch. Enter
a name in the Branch name text box and click Create.

Switch, compare, save, and
merge branches with Git.


To switch, compare, save, and merge branches, on the
Project tab, in the Source Control section, click
Branches. The Branches dialog box appears, where you
can view, switch, create, and merge branches. For more
information, see “Branch and Merge with Git” on page 32-
40.

Use Source Control with Projects
Free download pdf