MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Commit Modified Files to Source Control


Before you commit modified files, review changes and mark any new files for addition into
source control. The files under source control that you can commit to a repository display
the Added to Source Control symbol or the Modified File symbol in the Current
Folder browser.

(^1) Right-click in the Current Folder browser and select Source Control > View and
Commit Changes. In the View and Commit Changes dialog box, select the files to
commit to the repository.
(^2) Enter comments in the dialog box, and click Commit.
(^3) A message appears if you cannot commit because the repository has moved ahead.
Before you can commit the file, you must update the revision up to the current HEAD
revision.



  • If you are using SVN source control, right-click in the Current Folder browser.
    Select Source Control > Update All from SVN.

  • If you are using Git source control, right-click in the Current Folder browser.
    Select Source Control > Pull.


Resolve any conflicts before you commit.

See Also


Related Examples



  • “Mark Files for Addition to Source Control” on page 32-10

  • “Review Changes in Source Control” on page 32-9

  • “Resolve Source Control Conflicts” on page 32-11

  • “Update SVN File Status and Revision” on page 32-28

  • “Update Git File Status and Revision” on page 32-38

  • “Pull, Push and Fetch Files with Git” on page 32-45


Commit Modified Files to Source Control
Free download pdf