MATLAB + GIT in windows

12 次查看(过去 30 天)
Ben
Ben 2013-5-31
评论: Ben 2016-2-26
Has anyone been able to get the git push command to upload code changes to github from matlab in Windows?
Using ssh authentication, I have it working from git bash and the gui, but not from powershell or matlab.
Apparently, some people have written powershell wrappers to deal with ssh agent issues (for example: http://markembling.info/2009/09/ssh-agent-in-powershell ), but has anyone done a similar thing in matlab? The git wrappers on the file exchange don't appear to address this issue.

回答(1 个)

Ben
Ben 2013-6-10
It appears that git push commands are hard to support in Windows because the use of ssh requires a ssh-agent daemon to be running, and it's not an obvious windows service. Some of the powershell wrappers etc. use work-arounds using tools like Cygwin.
In the end, I decided it wasn't worth the extra effort, and will use non-MATLAB tools for the git push and interactive commands (git pull works fine from within MATLAB, though!).
I've put my notes on a MATLAB workflow using git online, and welcome any comments.
  2 个评论
Jacob Shea
Jacob Shea 2016-2-26
Ben, do you have any updates to share on this issue? It's now 2+ years later and as of R2014b git is integrated into the Matlab UI. I'm running into a problem that sounds similar to what you faced.
My issue is that, with everything working from msysgit bash and gui, attempting a connection to the git server results in the error "Algorithm negotiation failed". Any ideas about that?
Ben
Ben 2016-2-26
Sorry Jacob, I don't have any updates. I ended up doing my git commits outside of MATLAB.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Source Control 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by