title: How do I stop Git from tracking any changes to a file from this commit forward?
body: <p>I have a database configuration file that has default values that are unimportant. However, any changes to this file would contain sensitive information that should not be tracked in the repo. </p>
  
  <p>I would like future pulls of the Git repository to include the default version but disregard any changes made by any user. </p>
  
  <p>The following keeps a local configuration but pushes the delete to the repo resulting in issues for future pulls.</p>
  
  <pre><code>cat "app/dir/config.file" &gt;&gt; .gitignore
  git rm --cached app/dir/config.file
  </code></pre>
  
  <p>The following does the job but does not persist past the push to the repo.</p>
  
  <pre><code>git update-index --assume-unchanged app/dir/config.file
  </code></pre>
  
  <p>This seems like a common requirement for version control around sensitive information but I can't seem to find a solution.</p>