I am new at github and I am developing an app that has a config.php
file that you must enter the database credentials.
In my github repository the file is like this:
<?php
$host_name = "<HOST>";
$database = "<DATABASE>";
$user_name = "<USER>";
$password = "<PASSWORD>";
?>
But in the website i have the file with the credentials:
<?php
$host_name = "myhost";
$database = "mydatabase";
$user_name = "myuser";
$password = "mypassword";
?>
In the .gitignore
file I put the file that I don't want to push to my github repository when I am developing but what I want to do now is to ignore files when I make a pull.
What I want is to update my website from my github repository but I want to ignore the config.php
file because this must be unique in each install.
How can I do it?