Skip to content

Git Notes Line Endings

Randy McDermott edited this page Oct 23, 2019 · 13 revisions

It is remarkable that in the year 2019 we are still dealing with an issue introduced by the workings of a manual typewriter! But alas, here we are. Windows text editors will often add CRLF (Carriage Return + Line Feed) to end of a line in a text file. Depending on your system, this may cause errors when running FDS. When viewed by a the vim text editor with the -b option, you will see a "^M" at the end of the line.

We try to automatically scrub the repo of these endings using the .gitattributes file as discussed here. However, inevitably files slip through the cracks, or we have no control over how a Submodule repo is managed. So, these notes are a reminder for how to deal with this problem and make periodic corrections.

Clone this wiki locally