Emacs:ssh远程服务器repo上的magit状态失败

Emacs:ssh远程服务器repo上的magit状态失败,emacs,tramp,magit,spacemacs,trampolines,Emacs,Tramp,Magit,Spacemacs,Trampolines,我正在使用ssh连接到远程服务器。在服务器上有一个名为MRFLSSVM的git repo。但是,当我在上执行magit status时: /ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/ Magit要求我在/ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/?中创建存储库 你知道如何让magit承认回购协议吗?(我已经在/usr/local/git上安装了git 2.10.0,并将我的系统(CentOS)配置为通过

我正在使用ssh连接到远程服务器。在服务器上有一个名为
MRFLSSVM
的git repo。但是,当我在上执行
magit status
时:

/ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/
Magit要求我在/ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/?中创建存储库

你知道如何让magit承认回购协议吗?(我已经在/usr/local/git上安装了git 2.10.0,并将我的系统(CentOS)配置为通过更新替代方案使用它)

-----------编辑------------------------------

Error (magit): Magit requires Git >= 1.9.4, you are using 1.8.3.

If this comes as a surprise to you, because you do actually have
a newer version installed, then that probably means that the
older version happens to appear earlier on the `$PATH'.  If you
always start Emacs from a shell, then that can be fixed in the
shell's init file.  If you start Emacs by clicking on an icon,
or using some sort of application launcher, then you probably
have to adjust the environment as seen by graphical interface.
For X11 something like ~/.xinitrc should work.

If you use Tramp to work inside remote Git repositories, then you
have to make sure a suitable Git is used on the remote machines
too.

Error (magit): Magit requires Git >= 1.9.4, but on /ssh:qmServer: the version is 1.8.3.

If multiple Git versions are installed on the host then the
problem might be that TRAMP uses the wrong executable.

First check the value of `magit-git-executable'.  Its value is
used when running git locally as well as when running it on a
remote host.  The default value is "git", except on Windows
where an absolute path is used for performance reasons.

If the value already is just "git" but TRAMP never-the-less
doesn't use the correct executable, then consult the info node
`(tramp)Remote programs'.
这个问题似乎是因为远程服务器上的tramp没有使用正确的git。我尝试将
magit-git-executable
更改为
usr/local/git/bin/git
,这是本地和远程安装git的路径。但这仍然不起作用


有什么办法解决这个问题吗?谢谢

请不要同时在这个网站和Emacs Stack Exchange上交叉发布问题。FWIW,我不使用magit,所以我在这里猜测一些事情。
magit git可执行文件是绝对的还是相对的(是否有前导的
/
)?如果您显式设置它,它可能应该是绝对的。另外,请尝试
(添加到列表'tramp remote path'或tramp own remote path)
<代码>C-h v不定期船远程路径
了解详细信息。