MATLAB + GIT in windows

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.

Respuestas (1)

Ben
Ben el 10 de Jun. de 2013

1 voto

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 comentarios

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

Iniciar sesión para comentar.

Categorías

Más información sobre Source Control en Centro de ayuda y File Exchange.

Productos

Preguntada:

Ben
el 31 de Mayo de 2013

Comentada:

Ben
el 26 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by