How to keep different content of one file in my local and github repository?

后端 未结 2 433
孤独总比滥情好
孤独总比滥情好 2020-11-29 14:02

I have a database.php. I want to keep it in my github repository without any sensitive information.

First I pushed to my repository without any sensitive info.

2条回答
  •  温柔的废话
    2020-11-29 14:37

    You should make 2 different files one actual database.php and one database.php.example or something like that and then add database.php to .gitignore

提交回复
热议问题