MATLAB 도움말 센터
Git repository 객체 만들기
R2023b 이후
repo = gitrepo
repo = gitrepo(folder)
repo = gitrepo는 현재 작업 폴더에 Git™ 리포지토리에 대한 matlab.git.GitRepository 객체 repo를 만듭니다. repo를 사용하여 리포지토리를 프로그래밍 방식으로 조작할 수 있습니다.
repo
matlab.git.GitRepository
예제
repo = gitrepo(folder)는 지정된 folder에 Git 리포지토리에 대한 matlab.git.GitRepository 객체 repo를 만듭니다.
folder
모두 축소
Times Table App 프로젝트 리포지토리를 열고 repository 객체를 만듭니다.
openExample("matlab/TimesTableProjectExample") repo = gitrepo
repo = GitRepository with properties: WorkingFolder: "C:\myWorkSpace\examples\TimesTableProjectExample" GitFolder: "C:\myWorkSpace\examples\TimesTableProjectExample\.git" CurrentBranch: [1×1 GitBranch] (main) LastCommit: [1×1 GitCommit] (566d916) Remotes: [1×1 GitRemote] ModifiedFiles: [0×1 string] UntrackedFiles: [1×1 string] IsBare: 0 IsShallow: 0 IsDetached: 0 IsWorktree: 0
지정된 폴더에 대한 repository 객체를 만듭니다.
repo = gitrepo("newrepo\")
repo = GitRepository with properties: WorkingFolder: "C:\workSpace\newrepo" GitFolder: "C:\workSpace\newrepo\.git" CurrentBranch: [0×0 GitBranch] LastCommit: [0×0 GitCommit] Remotes: [1×1 GitRemote] (origin https://github.com/my/repo ModifiedFiles: [0×1 string] UntrackedFiles: [2×1 string] IsBare: 0 IsShallow: 0 IsDetached: 0 IsWorktree: 0
함수가 matlab.git.GitRepository 객체를 만드는 리포지토리 폴더의 경로로, 문자형 벡터 또는 string형 스칼라로 지정됩니다.
Git 리포지토리로, matlab.git.GitRepository 객체로 반환됩니다.
R2023b에 개발됨
gitinit | gitclone | add | rm | commit
gitinit
gitclone
add
rm
commit
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의