FAQ Database Discussion Community


Can git be configured to not perform autocrlf on certain files?

git,core.autocrlf
I am using git on a Java project which is deployed to Windows, Linux, and Mac clients. For this Java project, I also maintain *.sh scripts for running the compiled binaries on Mac/Linux and .exe/.bat files for running the compiled binaries on Windows. My development environment is Windows. Git's autocrlf...

Override .gitattributes text=auto in Windows

windows,git,gitattributes,core.autocrlf
This is pretty unintuitive: C:\python-tdl\examples\termbox>git config core.autocrlf false C:\python-tdl\examples\termbox>git commit termbox.py warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in examples/termbox/termbox.py. The file will have its original line endings in...

env: bash\r: No such file or directory

windows,git,bash,line-endings,core.autocrlf
I'm trying to install YouCompleteMe from here. When I execute: ./install.sh --clang-completer I get this error: env: bash\r: No such file or directory I don't know whats wrong with environment variables. Here's my bash path: which bash /bin/bash Do I need to change it to /usr/bash? If yes, then how...