I have cygwin and msysgit on my computer. I am trying to clone a repository for a vim package with this command:
cd ~/.vim/bundle
git clone https://github.com/jelera/vim-javascript-syntax.git
However, when I run vim, it fails, reporting error E488: Trailing characters
. This appears to be cause by the line endings being CRLF
rather than just LF
, which is confirmed when I replace them.
Of course replacing them manually isn't what I want. I'd rather have git do it for me. However, as I am using my computer for developing on the Windows platform, I don't want to modify any global settings.
Is there a command line switch to have git clone a repo using LF
EOLs
only?