title: MySQL Workbench Model Cannot open document file git
body: <p>I am trying to open a MySQL workbench file (*.mwb) but getting the following error as per the 2nd screenshot...is there a way to restore this file?</p>
  
  <blockquote>
    <p>Cannot open document</p>
    
    <p>Cannot open document file: No Error</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/poiag.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/poiag.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/UoshZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UoshZ.png" alt="MySQL Workbench open model error"></a></p>
  
  <p>My files are in git but checking out older versions doesn't seem to work...I strongly believe it is something related to the line endings of the file as when I commit files I get the message from git along the lines of...</p>
  
  <blockquote>
    <p>CRLF will be replaced by LF in file x</p>
  </blockquote>
  
  <p>Unfortunately I don't have any *.bak files in the same directory so can't restore it from that</p>
  
  <p>I've also tried opening the file with 7zip and winrar, I can see an XML in there but get errors when trying to view it</p>
  
  <p>My .gitattributes file is currently set as follows:</p>
  
  <pre><code># Autodetect text files
  * text=auto
  
  # Force the following filetypes to have unix eols, so Windows does not break them
  *.* text eol=lf
  
  # (binary is a macro for -text -diff)
  *.png binary
  *.jpg binary
  *.jpeg binary
  *.gif binary
  *.ico binary
  </code></pre>
  
  <p>I tried adding the following, deleting and checking out the file but it didn't work</p>
  
  <pre><code>*.mwb binary
  </code></pre>