Track Work Locally with Git in MATLAB - MATLAB & Simulink (original) (raw)
Main Content
To track changes to your files without sharing with others, you can create a local Git™ repository that is not synced with a remote repository. After you create a local repository, you can use source control actions in the Files or Project panel and the Source Control panel.
Tracking work locally using Git provides a robust framework for managing and safeguarding your code, supports best practices for software development, and lays the foundation for collaboration and scaling.
Note
Before using Git in MATLAB®, set up your system to avoid binary file corruption. For more information, see Set Up Git Source Control.
To track your files locally using Git, follow these steps:
- Create Local Git Repository in MATLAB
- Review and Commit Modified Files to Git
- Share Git Repository to Remote
Use the files provided within each example to follow the instructions.