title: How can I ignore dist folder in .gitignore file?
body: <p>I want to ignore the <code>dist</code> folder. So when there is a change in the <code>dist</code> folder, it doesn't appear in the <code>commit</code></p>
  
  <p>In the .gitignore file, there had exist <code>/dist</code> like this :</p>
  
  <pre><code>.DS_Store
  node_modules
  /dist
  </code></pre>
  
  <p>But why when there are changes it still appears?</p>
  
  <p>How can I solve this problem?</p>