Main Content

Source Control Integration

Use source control in MATLAB®

You can use MATLAB to work with files under source control. You can perform actions such as updating and committing code, merging changes, and viewing revision history directly from the Current Folder browser.

You also can use source control with projects. For more information, see Use Source Control with Projects and Clone Remote Git Repository into New Project.

Functions

expand all

gitcloneClone Git repository (Since R2023b)
gitrepoCreate Git repository object (Since R2023b)
gitinitInitialize empty Git repository (Since R2023b)
gitrepoCreate Git repository object (Since R2023b)
addMark new file for addition to Git repository (Since R2023b)
rmMark file for deletion from Git repository (Since R2023b)
status Display status of files in working folder and staging area in Git repository (Since R2023b)
logDisplay record of commits in Git repository (Since R2023b)
gitrepoCreate Git repository object (Since R2023b)
createBranchCreate new Git branch (Since R2023b)
switchBranchSwitch Git branch (Since R2023b)
deleteBranchDelete local Git branch (Since R2023b)
mergeMerge Git branch, revision, or tag into current branch (Since R2023b)
gitrepoCreate Git repository object (Since R2023b)
fetchDownload new data from remote Git repository (Since R2023b)
mergeMerge Git branch, revision, or tag into current branch (Since R2023b)
pullDownload and merge new data from remote Git repository into local repository (Since R2023b)
gitrepoCreate Git repository object (Since R2023b)
commitCommit changes to Git repository (Since R2023b)
pushPublish local changes to remote Git repository (Since R2023b)

Objects

expand all

matlab.git.GitRepositoryGit repository object (Since R2023b)

Topics