Git in MATLAB
Use Git source control in MATLAB to manage files and branches, and collaborate with others.
Functions
Tools
Branch Manager | View Git repository history and manage local and remote Git branches and repositories (Since R2025a) |
Topics
- Source Control Integration in MATLAB
Use MATLAB built-in integrations with Git and Subversion® (SVN) or write your own source control integration using SDK. (Since R2025a)
- Set Up Git Source Control
Set up Git source control for use in MATLAB, including registering your binary files to avoid file corruption and setting up SSH Authentication to prevent frequent login prompts. (Since R2025a)
- Track Work Locally with Git in MATLAB
Use Git source control in MATLAB to track your files locally.
- Collaborate Using Git in MATLAB
Use Git source control in MATLAB to manage your files and collaborate with others.
- STEP 1: Clone Git Repository in MATLAB
- STEP 2: Create, Manage, and Merge Git Branches
- STEP 3: Resolve Git Conflicts
- STEP 4: Push to Git Remote
- Annotate Lines in MATLAB Editor Using Git History
Annotate files to view line-by-line Git revision history. (Since R2025a)
- Work with Git Submodules in MATLAB
Manage and use external code repositories into your main Git repository to streamline code organization and collaboration. (Since R2025a)
- Configure Source Control Settings
Disable a source control system, specify default source control folders, and configure Git settings. (Since R2025a)
- Customize External Source Control to Use MATLAB for Diff and Merge
Use the MATLAB Comparison Tool for diff and merge from external source control tools.