What do you add to your .emacs file to use msysgit bash inside emacs ?
I just modified the c开发者_开发百科ygwin instructions for msysgit replace cygwin with msysgit everywhere in these . The only thing i can't do is run ssh or vim inside the bash... directory completions work with windows style drive names prepended at the beginning.Add this to your "_emacs.el" - it works for me:
;; When running in Windows, we want to use an alternate shell so we
;; can be more unixy.
(setq shell-file-name "C:/Program Files/msysgit/bin/bash")
(setq explicit-shell-file-name shell-file-name)
Update May 2018: Git 2.18 (Q2 2018) has now removed the contrib/emacs/
content.
Users of the git.el mode are now much better off using either Magit or the Git backend for Emacs's own VC mode.
See "Emacs Lisp error at init
" for more.
Original answer 2011:
Not tested, but the idea was (2008) to copy in your Git installation directory at least:
contrib\emacs\git.el
contrib\emacs\git-mswin.el
With git-mswin.el
being "Windows/msysgit specific modifications for git.el
".
精彩评论