title: .gitignore and remove cached makes it so I can't see the file on the server al all?
body: <p>I want to ignore a few files that need to be different, or do not need to be tracked- I edit my gitignore to skip swp files, the entire tmp dir and a few of the log files inside log/.</p>
  
  <p>I them removed the cached versions from my local install- all seemed well here</p>
  
  <p>then I ran git add . (was this supposed to be a git add -u?)</p>
  
  <p>And then pushed to my remote repository.</p>
  
  <p>The app worked fine still, but I noticed that I couldn't find or access the files on my remote repository I had ignored locally- my log file was gone, as was my database.yml file (again, on remote).</p>
  
  <p>I could still start up the application, so it seems like the file is still there (unless I'm wrong about needing database.yml), but I can't see those files.</p>
  
  <p>If I wanted to always ignore those files (as does the other dev who will pull them), how can I do that without having those files dissapear on the remote?</p>
  
  <p>Thanks</p>
  
  <p>Edit- it seems like what I might be looking for is actually </p>
  
  <pre><code>git update-index --assume-unchanged example.txt
  </code></pre>
  
  <p>which seems like it will allow for the file to continue existing in both environments, without monitoring it for any changes.</p>
  
  <p>Am I on the right track?</p>