Git in MATLAB - MATLAB & Simulink (original) (raw)

Main Content

Use Git™ source control in MATLAB® to manage your files and collaborate with others

Use Git source control in MATLAB to manage files and branches, and collaborate with others.

Functions

expand all

add Mark new file for addition to Git repository (Since R2023b)
rm Mark file for deletion from Git repository (Since R2023b)
status Display status of files in working folder and staging area in Git repository (Since R2023b)
log Display record of commits in Git repository (Since R2023b)
discardChanges Discard changes in Git repository (Since R2024a)
diffCommits List modified files between two commits (Since R2025a)
saveFileRevision Save revision of file to disk (Since R2025a)
addRemote Add new remote to Git repository (Since R2025a)
removeRemote Remove remote from Git repository (Since R2025a)
createBranch Create new Git branch (Since R2023b)
switchBranch Switch Git branch (Since R2023b)
deleteBranch Delete local Git branch (Since R2023b)
merge Merge Git branch, revision, or tag into current branch (Since R2023b)
fetch Download new data from remote Git repository (Since R2023b)
merge Merge Git branch, revision, or tag into current branch (Since R2023b)
pull Download and merge new data from remote Git repository into local repository (Since R2023b)
commit Commit changes to Git repository (Since R2023b)
push Publish local changes to remote Git repository (Since R2023b)

Tools

Branch Manager View Git repository history and manage local and remote Git branches and repositories (Since R2025a)

Topics