Add the file to your .gitignore
file. Generally speaking, files that contain password or sensitive config information should be stored separately from your main git repository, for both security and so different workstations don't override each other.
For details, see the docs on gitignore.
Since the file was previously in the repository, run git rm -r --cached config.php
to stop tracking it. Note that this file will still be present in past commits, so from a security perspective, if there is any sensitive information, you may want to consider changing passwords, etc.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…