title: How to pull remote changes in local ignoring local changes in git?
body: <p>I have a server. My web project is hosted in GitHub. I made a cronjob in my server to pull changes from GitHub repository. But, as there is database user, password information, so I put fake user and password in GitHub repo pages. I make a script and put in the server that changes the database name and password of the file where use database user and password. The scripts run after each pulling.  </p>
  
  <p>But, problem is when there is local changes available git don't support pulling from remote.  </p>
  
  <p>I use <code>git pull origin master</code> that results  </p>
  
  <pre><code> * branch            master     -&gt; FETCH_HEAD
     5aef90a..f0ef960  master     -&gt; origin/master
  Updating 5aef90a..f0ef960
  error: Your local changes to the following files would be overwritten by merge:
      README.md
  Please, commit your changes or stash them before you can merge.
  Aborting
  </code></pre>
  
  <p>Now what can I do so that git ignore local changes?</p>
  
  <p><strong>Edit 1</strong><br>
  suppose I have a file <code>connection.php</code> that have the fake password and user. I want to ignore that file changes. </p>