Hello List,
I have the same problem as this stackoverflow question.
https://emacs.stackexchange.com/questions/35055/magit-with-tramp-is-not-working-with-git-correctlyi.e. I can not get magit to work on my server accessed with tramp correctly.
I have also posted this question on git hub for magit:
https://github.com/magit/magit/issues/3463#issuecomment-412541573Which has some more details of the steps I have taken including adding :
(require 'tramp)
(push "/cm/shared/tools/git-2.18.0/bin/git" tramp-remote-path)
to my .emacs
and deleting my tramp file in .emacs.d
If I use dired over tramp to get to a remote folder and then run:
M-! which git
which: no git in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/local/bin)
M-! git --version
/bin/sh: git: command not found
M-& which git
which: no git in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/local/bin)
M-& git --version
/bin/sh: git: command not found
So these commands are not finding git, but if I M-x shell on the server and run git it works fine.
I am not sure if this is something to do with Mac os? I have this installed:
https://github.com/purcell/exec-path-from-shell to get my paths working
Does anyone know a fix?
Many thanks,
Sam