Crash while saving git commit message via emacs in cygwin

EDIT: I use pico for git messages, so I will no longer need a solution. But if you have any suggestions, out of curiosity, I can try them.

So, I have a git repository on cygwin, and doing 'git commit -a -m "message" works very well.

However, by executing a 'git commit', which goes into the emacs window and enters something, and pressing Cx Cs and Cx Cc (save and quit) does not execute commit (as checked by the 'git log ").

Any ideas?

+3
source share
3 answers

Before you run git commit, be sure to do the following:

export GIT_EDITOR=emacsclient
0
source

git - ?

: emacs git, git .

0

I think that Cygwin does not treat Cc as you would expect, unless you set "set CYGWIN = tty" to cygwin.bat.

See http://cygwin.com/cygwin-ug-net/using-cygwinenv.html for more details .

0
source

Source: https://habr.com/ru/post/1765665/


All Articles