Re: [AMBER-Developers] Please avoid DOS line endings

From: Gustavo Seabra <>
Date: Sat, 8 Feb 2020 21:18:43 +0000

I remember that, when installing GIT for Windows, it gives you the option to automatically convert line endings to Linux style when committing. It should be easy to set that as default behavior.

Gustavo Seabra
From: Daniel Roe <>
Sent: Saturday, February 8, 2020 8:47:15 AM
To: AMBER Developers Mailing List <>
Subject: [AMBER-Developers] Please avoid DOS line endings
Hi All,
Today I encountered a nasty issue merging the master branch into a
branch I'm developing on. The problem was
src/pmemd/src/mdin_ctrl_dat.F90 now has DOS line endings in the master
branch, so when I try to merge the master version (with DOS) into mine
(without DOS) GIT gets confused and thinks the master version is
completely different, and the merge fails completely (I end up with
both versions of the file).
It's possible to get around this with:
git merge -s recursive -Xignore-space-at-eol master
but in my opinion this is a hack and shouldn't be part of regular
development workflow.
So please, if at all possible, avoid committing files with DOS line endings :-)
AMBER-Developers mailing list
AMBER-Developers mailing list
Received on Sat Feb 08 2020 - 13:30:01 PST
Custom Search