title: exclude files from pushing and pulling
body: <p>I have a remote repository that is mirrored to a development site and downloaded to my local machine to work with. When I push changes they update the site by hooks.</p>
  
  <p><strong>Update</strong>
  The thing i need:
  Repository holds whole project with working "configuraion.php" for development site (working online resource for testing);
  Any developer can pull the roject and change the only two path variables in configuration.php to run it;
  After that this file should not be commited to repository and should not be overwritten when pulling changes.</p>
  
  <p>But I get errors pulling from repository.
  I have tried:</p>
  
  <ul>
  <li>Downloaded the project</li>
  <li><code>git update-index --assume-unchanged configuration.php</code></li>
  <li>changed the file and at that moment it seems to be OK</li>
  </ul>
  
  <p>But when I try to pull changes (made by others) from repository I get the following:</p>
  
  <pre><code>error: Your local changes to the following files would be overwritten by merge:
      configuration.php
  Please, commit your changes or stash them before you can merge.
  Aborting
  </code></pre>
  
  <p>Tried to add to <code>".git/info/exclude"</code> but no visible effect.</p>
  
  <p>What am I doing wrong?</p>