Alex Rivera | Logout

Using git with emacs

Asked 2009-05-30T19:47:37.857
9

I am trying to configure git.el. When i do git-status i can see the status buffer with changed i can also add files using 'a' but when i try to commit a file using c writing the commit log and finishing it with C-c C-c gives me

env: git: No such file or directory

error and file is not committed. I am using emacs 23 on OS X. The only customization i added to my .emacs is

(setq exec-path (append exec-path '("/opt/local/bin")) )

because emacs failed to find git executable.

Edit
Report

1 Answer

1

A very simple way to solve this problem is to modify the exec path in your .emacs file

(add-to-list 'exec-path "/usr/local/git/bin/")

This does the trick for me.

answered 2012-05-23T20:03:51.890

Your Answer