title: Husky 5 .huskey gitignore
body: <p>10 days ago, Husky 5 was released
  <a href="https://dev.to/typicode/what-s-new-in-husky-5-32g5" rel="noreferrer">https://dev.to/typicode/what-s-new-in-husky-5-32g5</a></p>
  <p>after migrating to it (<a href="https://typicode.github.io/husky/#/" rel="noreferrer">https://typicode.github.io/husky/#/</a>)</p>
  <p>I've noticed that there is a new <code>.husky</code> dir in the project.</p>
  <p>by default it contains the following:</p>
  <pre><code>.huskey
     -&gt; .gitignore
     -&gt; /_
  </code></pre>
  <p>the <code>.gitignore</code> file is simply ignoring the <code>_</code> dir</p>
  <pre><code>_
  </code></pre>
  <p>and inside the <code>/_</code> dir there is a <code>huskey.sh</code> file which is obviously meant to be ignored.</p>
  <p>in the documentation - you add hook by:</p>
  <pre><code>npx husky add .husky/pre-commit &quot;npm test&quot;
  </code></pre>
  <p>which will create a <code>pre-commit</code> file inside the <code>.husky</code> dir.</p>
  <p>Should I commit that dir with the <code>pre-commit</code> file? not sure about that and can't find that in documentation.</p>