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:
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
.
lock
option to on
.
force
option to on
.
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 |