I have this error when I start emacs:
File error: Searching for program, no such file or directory, git
My Git is inside the VM in /usr/bin/git
How can I point emacs to it?
I'm using tramp
and plink
to communicate the VM and emacs.
I tried leaving in the .emacs
file
(add-to-list 'exec-path "/plink:[email protected]:/usr/bin/")
But it didn't help.
I also tried to install Git into windows but then when I visit Git repositories in the VM, emacsGit from windows doesn't recognize it as a git repohave access to the remote FS. Specifically, I press M-x magit
, and emacs says:
Git repository:<path to where I am>
Then I press enter
Then it says:
Create repository in /plink:[email protected]:<path to where I am>
Whether I press Y or N, it doesn't help me.
Does anyone have any suggestions? How do I configure Magit to use the git binary on the remote machine?
Thanks