title: How to keep different content of one file in my local and github repository?
body: <p>I have a database.php. I want to keep it in my github repository without any sensitive information. </p>
  
  <p>First I pushed to my repository without any sensitive info. </p>
  
  <p>Now I added my database info so that I can use it locally.</p>
  
  <p>I added to .gitignore. And I did rm --cached database.php. But it deleted the database.php from my github repository after a push.</p>
  
  <p>How can I keep different content in my local and github repository?</p>
  
  <p>Thanks in advance.</p>