MATLAB + GIT in windows

조회 수: 13 (최근 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