2010-10-05 9 views
0

J'ai un script bash sous contrôle de version Git sous Windows (cygwin git). Je voudrais le fichier checkout de repo avec LF (c'est bash script) sur windows (et j'ai core.autocrlf = true). Par conséquent, j'ai le fichier CRLF et le message d'erreur "$ '\ r': command not found" pour le script. Comment je pourrais contourner ce problème?Git: fichier commit avec LR avec msys/cygwin Git

BR

+0

Par LR, voulez-vous dire linefeed? –

+0

Oui, merci. – k84d

Répondre

0

Définissez l'option igncr pour votre shell bash.

+0

Oui, "igncr" pourrait aider. Informations supplémentaires: http://lists-archives.org/cygwin/59110-bash-igncr-and-bash_env-was-bash-igncr-documentation-where.html – k84d