title: Unstaged changes could not be restored due to a merge conflict
body: <p>When I execute <code>git commit -m &quot;commit message&quot;</code> command, lint-staged shows this error:</p>
  <p><a href="https://i.stack.imgur.com/jzuwl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jzuwl.png" alt="enter image description here" /></a></p>
  <p>My configuration in package.json:</p>
  <pre><code>&quot;husky&quot;: {
      &quot;hooks&quot;: {
          &quot;pre-commit&quot;: &quot;npm run validate &amp;&amp; lint-staged&quot;
      }
  },
  &quot;lint-staged&quot;: {
      &quot;*.+(js|ts|tsx)&quot;: [
          &quot;eslint&quot;
      ],
      &quot;**/*.+(js|json|ts|tsx)&quot;: [
          &quot;prettier --write&quot;
      ]
  },
  </code></pre>
  <p>It works fine on <strong>mac</strong> but <strong>windows-10</strong> shows this error. Can anyone tell me what's going wrong with windows?</p>