忽略 wp-config.php WordPress 不工作
我在全新安装的 WordPress 上尝试了很多 gitignore wp-config.php
,也不是全新安装,但没有一个起作用。我正在使用 PhpStorm。
有人有想法吗?
请注意,我已经使用了 rm -- cached 和所有已知的解决方案。
测试的命令
git rm --cached wp-config.php
add file to .gitignore
I have tried a lot to gitignore wp-config.php
on a fresh installation of WordPress, not fresh installation also but none of them has worked. I am using PhpStorm.
Does anyone have an idea?
Please note that I have used rm -- cached
and all know solutions.
the commands tested
git rm --cached wp-config.php
add file to .gitignore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议 wp-config.php 已经在存储库中了!?您必须使用以下方法删除它们:
git rm --cached .
git add .
并提交git commit -m“将 wpConfigPhp 添加到 gitignore”
I suggest that wp-config.php is already in the repository!? You have to remove them with:
git rm --cached .
git add .
and commit withgit commit -m "add wpConfigPhp to gitignore"