Start Emacs from gitbash (MINGW64)
Snippet below is loaded automatically:
; add el-get to the load path, and install it if it doesn't exist
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.github.com/dimitri/el-get/master/el-get-install.el")
(goto-char (point-max))
(eval-print-last-sexp)))
Error:
Warning (initialization): An error occurred while loading 'c:/Users/user/.emacs':
error: Unable to find 'git'
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the '--debug-init' option to view a complete error backtrace.
; add el-get to the load path, and install it if it doesn't exist (add-to-list 'load-path "~/.emacs.d/el-get/el-get") (unless (require 'el-get nil 'noerror) (with-current-buffer (url-retrieve-synchronously "https://raw.github.com/dimitri/el-get/master/el-get-install.el") (goto-char (point-max)) (eval-print-last-sexp)))
Environments and settings:
- Windows 10
- Git installed (git version 2.14.1.windows.1)
- Git installation path(C:\Program Files\Git\cmb) is added to Environment path variable.
- HOMEPATH: c:/Users/user
- emacs version: GNU Emacs 26.1 (build 1, x86 64-w64-mingw32) of 2018-05-30
git can not be found even though it's installed. How can I configure Git set-up properly?