title: Ignore a file temporarily until it changes
body: <p>I have many files in my workspace with small changes that I'll never want to commit, but I want to know when I add new changes in them.</p>
  <ul>
  <li><p>Example 1:
  A <code>Makefile</code> that uses <code>lerna</code>, but since I almost never use and it don't want to install it globally, I have replaced <code>lerna</code> with <code>npx lerna</code> in my local version.
  I should not commit that, and I can't ignore the file because I need to track any other change I do in it.</p>
  </li>
  <li><p>Example 2:
  A file that contains a link to the backend API, that every developer sets with a different IP address, based on his home network.</p>
  </li>
  <li><p>Example 3:
  A dockerfile that sets an environment variable into the container for a public key that is different for every developer.</p>
  </li>
  </ul>
  <p>I have many others.</p>
  <p>As a result, browsing my git changes takes time because the git status is cluttered with many unwanted files.</p>
  <ul>
  <li>Solution 1: <strong><code>.gitignore</code></strong></li>
  </ul>
  <p>This is not a valid solution because if I change something other than that to the makefile or the dockerfile, I want to know the file is different and I need to commit the new change.</p>
  <ul>
  <li>Solution 2: <strong><code>git update-index --assume-unchanged</code></strong></li>
  </ul>
  <p><code>git update-index --assume-unchanged file</code>
  then
  <code>git update-index --no-assume-unchanged file</code></p>
  <p>This is not a valid solution because if I mark the makefile or the dockerfile as 'assume unchanged' and I do an important modification, then the file won't show up in the git status unless I remember I needed to apply <code>--no-assume-unchanged</code> to it.</p>
  <p>I'm looking for a solution that would basically hide the file from my local changes while it stays the exact same. Then, if I change the content, it is shown again to remind me I have done a new modification inside it.</p>
  <p>How can I do that?</p>