This question has already been answered:
- git and 7 response configuration files
Hello. I just can not configure such a thing: I have a file in the php project with a connection to the database. It stores data for this connection, that is, a host, password, etc. I would not want this data to be in the git repository, but the file itself should be there with other data. I tried to first add a file with false data to the repository, and then exclude it from tracking, but, I understand. that if the file already exists in the remote repository, then you cannot remove it from the index? Or how to do it?