MATLAB通过命令窗口git [英] MATLAB git by command window

查看:151
本文介绍了MATLAB通过命令窗口git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发我的代码时使用了

!来获取git命令。例如:

 !git status 
!git commit -am从MATLAB CLI提交一些东西
!git push

您需要在系统上安装Git才能正常工作。


I use MATLABs git support in the development of my code, often committing, pushing and all the standard source control stuff.

However, I have only used MATLABs user interface that basically works by right clicking on the folder and navigating through the menu until the right choice is found (see image below).

Is there a way to make MATLABs command window run git commands, instead of needing to navigate trough the menu each time?

解决方案

You can use the system command line escape ! for git commands within MATLAB. Eg:

!git status
!git commit -am "Commit some stuff from MATLAB CLI"
!git push

You'll need to have Git installed on your system for this to work.

这篇关于MATLAB通过命令窗口git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆