MATLAB + GIT in windows

12 Ansichten (letzte 30 Tage)
Ben
Ben am 31 Mai 2013
Kommentiert: Ben am 26 Feb. 2016
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.

Antworten (1)

Ben
Ben am 10 Jun. 2013
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 Kommentare
Jacob Shea
Jacob Shea am 26 Feb. 2016
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 am 26 Feb. 2016
Sorry Jacob, I don't have any updates. I ended up doing my git commits outside of MATLAB.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Source Control finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by