Development Environment    

Checking Files into the Source Control System

After creating or editing a file in the MATLAB Editor, Simulink, or Stateflow, save it, and then check in the file by following these steps:

  1. Select Source Control -> Check In from the File menu in the MATLAB Editor, Simulink model, or Stateflow model. The Check In dialog box opens.

  1. If you want to check in the file but keep it checked out so you can continue making changes, select Keep checked out. If you have comments, type them in the Comments area.
  1. Your comments will be submitted whether or not you select Keep checked out.

  1. Click OK.

The file is checked into the source control system. If you did not save the file before checking it in, it is automatically saved when it is checked in.

If you did not keep the file checked out and you keep the file open, note that it is a read-only version.

Function Alternative for Checking In Files

Use checkin to check files into the source control system. The files can be open or closed when you use checkin. The checkin function has this form:

For file, use the complete path. You must supply the comments argument and a comments string with checkin.

Use the option argument to

The comments argument and the lock and force options apply to all files checked in.

After checking in the file, if you did not keep it checked out and have it open, note that it is a read-only version.

Example - Check in a File with Comments

To check in the file clock.m with a comment Adjustment for Y2K, type

For other examples, see the reference page for checkin.


  Selecting and Viewing the Source Control System Checking Files Out of the Source Control System