title: How to ignore subsequent modification of a file
body: <p>I've a database.json, which should contain the database credential of my Zend project, I wonder if I can commit the file with sample credentials and then ignore it, to avoid other new commits...</p>
  
  <p>this is the file:</p>
  
  <pre><code>{
      "development": {
          "resources": {
              "db": {
                  "adapter": "PDO_MYSQL",
                  "params": {
                      "host":     "hostname",
                      "username": "username",
                      "password": "password",
                      "dbname":   "dbname"
                  }
              }
          }
      }
  }
  </code></pre>