title: .gitignore not ignoring package.json
body: <p>I have a node project and I am trying to ignore my package.json.</p>
  
  <p>I have added package.json inside .gitignore.</p>
  
  <p>Basically I am working on creating swimlanes and I have another project's package.json overwritting the existing project's package.json. </p>
  
  <p>What i see happening is the package.json file is overwritting the existing and its not ignoring the new package.json althought its in the .gitignore.</p>
  
  <p>I tried</p>
  
  <pre><code>git rm --cached 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>git add .
  </code></pre>
  
  <p>But this is deleteing my package.json file from my local which I dont want</p>
  
  <p>Expected: I need the package.json to be igniored when I pull the new package.json using grunt fetchFromArtifactory.</p>