[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp and magit

From: S Neaves
Subject: Tramp and magit
Date: Tue, 14 Aug 2018 12:37:01 +0100

Hello List,

I have the same problem as this stackoverflow question.

i.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:

Which 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: to get my paths working

Does anyone know a fix?

Many thanks,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]