title: Sitecore serialized items with Git autocrlf
body: <p>We're experiencing a problem with serialized items. Our use case is to work locally with own databases and sync all the items with <a href="https://github.com/kamsar/Unicorn" rel="noreferrer">Unicorn</a>. Then we push all the items to our Git repository. The local Git config is set to <code>autocrlf=true</code>. This is needed because we have some frontend engineers on the project which work with Mac OS X. We serialize the complete "core" database with Unicorn (like in the default configuration after installation).</p>
  
  <p>It seems, that some of the items in the core database were created with a non Windows system. If we i.e. look into the item <code>/sitecore/system/Dictionary/O/One or more items have been changed   Do you want to overwrite these changes</code>: When I serialize this item and look into it, I see that the <code>Key</code> field contains multiple lines and the the line feeds are marked with "<code>\n</code>" and that the <code>content-length</code> is <code>77</code> (see attached screenshot from Notepad++, the left side). After this I push this file to the Git repository and pull the item on another workstation from the repository. Due to the setting <code>autocrlf=true</code>, the "<code>\n</code>" is automatically converted to a "<code>\r\n</code>", which results in a <code>content-length</code> of <code>79</code> instead of the original <code>77</code> (see right side of attached screenshot). When I want to deserialize this item I get the exception that the content-length does not match.</p>
  
  <p><img src="https://i.stack.imgur.com/yjmwC.png" alt="enter image description here"></p>
  
  <p>Does anyone have had such an error before and what did you do to avoid this? I see the option to disable the <code>autocrlf</code> or to exclude these items from the serialization sync. But I would like to avoid doing one of these options.</p>