Git Matlab

버전 1.0.0.0 (2.28 KB) 작성자: Stuart Layton
Git Matlab is a simple git wrapper allows the execution of git commands from within Matlab.
다운로드 수: 980
업데이트 날짜: 2012/10/16

라이선스 보기

This function provides a simple and clean interface to git. Not only does it execute git commands it also allows you to specify a which text editor should be launched in the case that one is needed by git.

% GIT - use GIT from matlab, using standard GIT commands
%
% Examples:
% % initialize a repository
% >> git init;
%
% % add a file to the repository
% >> git add myFile.m % begin tracking my_function.m
%
% % commit changes to the repository
% >> git commit myFile.m -m 'initial checkin of myFile.m'
%
% % push to another repository
% >> git push origin master
%
%
% Commands that require additionall input (such as commits without -m flags)
% will generally fail unless the environment variable EDITOR is defined. However,
% a preferred text editor can be specified within Matlab using the global
% variable GIT_EDITOR (Pro-tip: include this code in your startup.m file)
% For Example:
%
% Declare the global variable
% >> global GIT_EDITOR;
%
% For linux:
% >> GIT_EDITOR = '/path/to/editor'; % provide the complete path
%
% For Mac OSX:
% >> GIT_EDITOR = 'TextEdit'; % Simply provide the application name
%
% The most up to date version of this code can be found at:
% https://github.com/slayton/matlab-git

인용 양식

Stuart Layton (2024). Git Matlab (https://www.mathworks.com/matlabcentral/fileexchange/38600-git-matlab), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Source Control Integration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0