Cygwin + msysgit - incorrect line endings sent to fix the message editor

I use cygwin on Windows 7, but I decided to work with msysgit, and not the default cygwin git, because msysgit is always later. Everything works very well, except for editing commit messages. I use nano (form cygwin) and my msysgit seems to send the final CRLF lines to it, so they do not display correctly in the cygwin window (like ^ M).

Do you have an idea how to fix this?

Do you think combining mssygit and cygwin is a good approach anyway?

Thanks!

+1
source share
1 answer

Do you think combining mssygit and cygwin is a good approach anyway?

I try to avoid this, since msysgit is now much more preliminary and updated than cygwin regarding git. See " Git under windows: MSYS or Cygwin? "
You can view using nano for Windows .

Check at least for git the value of git config core.autocrlf.

Make sure it is a lie in both environments. See " Final recommendation for git autocrit settings .

0
source

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


All Articles