title: How to remove file from untracked list but not actually delete the file?
body: <p>I have added the file extension <code>.patch</code> to my <code>.gitignore_global</code>, however this hasn't updated in my local repo yet. I want to remove this from the untracked list but keep the file in my local repo.</p>
  
  <p><strong>git status:</strong></p>
  
  <pre><code>Kierans-MacBook-Pro:master-abc kpmacbook$ git status
  On branch master
  Your branch is up-to-date with 'origin/master'.
  Untracked files:
    (use "git add &lt;file&gt;..." to include in what will be committed)
  
      0001-adding-column.patch
  
  nothing added to commit but untracked files present (use "git add" to track)
  </code></pre>
  
  <p>When I try to run this command: <code>git rm --cached 0001-adding-column.patch</code> </p>
  
  <p>I get this:</p>
  
  <pre><code>Kierans-MacBook-Pro:master-abc kpmacbook$ git rm --cached 0001-adding-column.patch 
  fatal: pathspec '0001-adding-column.patch' did not match any files
  Kierans-MacBook-Pro:master-abc kpmacbook$
  </code></pre>
  
  <p><strong>EDIT More info:</strong></p>
  
  <pre><code>Kierans-MacBook-Pro:master-abc kpmacbook$ git config --get core.excludesfile
  ~/.gitignore_global
  </code></pre>
  
  <p><strong>.gitignore_global file:</strong></p>
  
  <pre><code>Kierans-MacBook-Pro:master-abc kpmacbook$ cat ~/.gitignore_global
  # Logs and databases #
  ######################
  *.log
  *.sql
  *.sqlite
  
  # OS generated files #
  ######################
  .DS_Store
  .DS_Store?
  ._*
  .Spotlight-V100
  .Trashes
  ehthumbs.db
  Thumbs.db
  
  # codekit #
  ###########
  .sass-cache/
  .codekit-config.json
  config.codekit
  
  # git #
  .patch
  </code></pre>
  
  <p>How do I fix?</p>