title: How to ignore files locally without adding it in .gitignore
body: <p>I have a <code>github</code> repository, which I checked out locally.</p>
  
  <ul>
  <li>I changed my environment variables in <code>environment.local-dev.ts</code> file. (It usually points to localhost, but as I don't have local api repository installed, I updated file to point to my colleagues local api)</li>
  <li>Now, the changed configuration is specific to my need. So, I don't want to commit these changes to the Github repository</li>
  </ul>
  
  <p>I searched for two options :</p>
  
  <ul>
  <li>To add file in <code>.gitignore</code>. But the problem is, I will still see <code>.gitignore</code>, which I might commit accidently.</li>
  <li>To add it in <code>.git/info/exclude</code>. I did this, but I am still seeing the changed files when I do <code>git status</code></li>
  </ul>
  
  <p>The Github repository, I am working on is already created by someone else. So cannot change the initial configuration.
  Also other people are working on the same repository so cannot commit changes which might affter other people negatively.</p>
  
  <p>So, the problem is to find a way to <code>not commit</code> files which are being <code>tracked by git</code>. Is there a way to do this ?</p>