主要内容

MATLAB 中的 Git

使用 MATLAB® 中的 Git™ 源代码管理来管理您的文件并与其他人协作

使用 MATLAB 中的 Git 源代码管理来管理文件和分支,并与其他人协作。

函数

全部展开

gitclone克隆 Git 存储库 (自 R2023b 起)
gitrepo创建 Git 存储库对象 (自 R2023b 起)
gitinitInitialize empty Git repository (自 R2023b 起)
matlab.git.GitRepositoryGit repository object (自 R2023b 起)
addMark new file for addition to Git repository (自 R2023b 起)
rmMark file for deletion from Git repository (自 R2023b 起)
status Display status of files in working folder and staging area in Git repository (自 R2023b 起)
logDisplay record of commits in Git repository (自 R2023b 起)
discardChangesDiscard changes in Git repository (自 R2024a 起)
diffCommitsList modified files between two commits (自 R2025a 起)
saveFileRevisionSave revision of file to disk (自 R2025a 起)
addRemoteAdd new remote to Git repository (自 R2025a 起)
removeRemoteRemove remote from Git repository (自 R2025a 起)
createBranchCreate new Git branch (自 R2023b 起)
switchBranchSwitch Git branch (自 R2023b 起)
deleteBranchDelete local Git branch (自 R2023b 起)
mergeMerge Git branch, revision, or tag into current branch (自 R2023b 起)
fetchDownload new data from remote Git repository (自 R2023b 起)
mergeMerge Git branch, revision, or tag into current branch (自 R2023b 起)
pullDownload and merge new data from remote Git repository into local repository (自 R2023b 起)
commitCommit changes to Git repository (自 R2023b 起)
pushPublish local changes to remote Git repository (自 R2023b 起)

工具

分支管理器View Git repository history and manage local and remote Git branches and repositories (自 R2025a 起)

主题

精选示例