title: How to store .env file in github?
body: <p>I have a node.js project with <code>.env</code> file in it. I pushed to github project, when in <code>.env</code> file was just a template. For example:</p>
  <pre><code># Database credentials
  DB_HOST=&quot;&quot;
  DB_USER=&quot;&quot;
  DB_PASSWORD=&quot;&quot;
  DB_DATABASE_NAME=&quot;&quot;
  </code></pre>
  <p>Then I added <code>.env</code> file to <code>.gitignore</code>. Pushed again and now, when I filled <code>.env</code> file with credentials, <code>git status</code> command says</p>
  <blockquote>
  <p>modifed: .env</p>
  </blockquote>
  <p>How can I store a template of <code>.env</code> file in github and ignore it's changes?</p>