gitignore 在我的情况下不起作用



我创建了 .gitignore 并在其中放置了config/db.js,因为我想连接到我的本地主机数据库,但当我更改文件 db 时.js在配置文件夹中 git 仍然跟踪更改。

尝试:

git rm --cached config/db.js

最新更新