Git Ignore files when make a pull

前端 未结 2 593
醉梦人生
醉梦人生 2021-01-14 07:47

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

2条回答
  •  执念已碎
    2021-01-14 08:39

    To stop tracking a file you need to remove it from the index. This can be achieved with this command:

    git rm --cached

    Commit that change

    git commit -am "Remove ignored config.php"

提交回复
热议问题