-
-
Save HereChen/11254286 to your computer and use it in GitHub Desktop.
matlab: git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [status, result] = git(varargin) | |
cmd = '"c:\Program Files\Git\cmd\git.cmd"'; | |
for i = 1:numel(varargin) | |
cmd = [cmd ' ' varargin{i}]; | |
end | |
switch nargout | |
case 0, system(cmd); | |
case 1, [status] = system(cmd); | |
case 2, [status, result] = system(cmd); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment