Skip to content

Agreement on line ending style and recommend matching settings for git

As contributing developers are working on Windows as well as Linux, different line endings are a problem from time to time when merging branches (CRLF vs. LF). We should agree on a set of recommended EOL settings for editors and especially git itself. I'd also like to define some basic rules about whitespacing.

My ideas so far:

  • Document a usable set of git settings (.gitconfig or .gitattributes) for Windows and Linux
  • Always trim trailing whitespace
  • Force EOL at end of files
  • No tabs

@all

Edited by Reinhard Biegel