Main Content
gitinit
Description
initializes an empty
Git™ repository in the current folder and returns a
repo
= gitinitmatlab.git.GitRepository
object. The gitinit
function also creates .gitignore
and .gitattributes
files. The .gitattributes
file contains the list of common binary files
to register and protect from corruption. For more information, see Register Binary Files with Git.
specifies additional options as one or more name-value arguments.repo
= gitinit(___,Name=Value
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023b