I\'m want to be able to work on my git projects using both the Github for Windows application as well as git in the command line using Cygwin (on Windows).
But I keep o
Working on both Git Bash and Cygwin in Windows is going to make git confuse. That is:
CRLF
to check out text files.CRLF
in Cygwin, it thinks that LF
is modified into CRLF
so that git reports a lots files changes.One way to fix this is to create .gitattributes
file in repo's root and
add lines like the following:
*.txt text eol=lf
It tell git when encounter file with suffix .txt
, using LF
both when
writing into "database(.git)" and checking out into working directory.
reference here