matlab.git.GitRepository
Description
The matlab.git.GitRepository object represents the currently
active local Git™ repository. Use the Git repository object to programmatically interact with your local
repository.
Creation
To create a matlab.git.GitRepository object for a specified
repository, use the gitrepo function. For
example:
repo = gitrepo("C:\workSpace\myrepofolder");gitrepo function creates an object
for the repository in the current folder.To clone a remote Git repository, use the gitclone function. For
example:
repo = gitclone("https://github.com/mathworks/examplerepo.git");To initialize a Git repository in a folder, use the gitinit
function. For
example:
repo = gitinit("C:\workSpace\myrepofolder");gitinit function initializes a
repository in the current folder.Properties
Object Functions
Examples
Version History
Introduced in R2023b