忽略 wp-config.php WordPress 不工作

发布于 2025-01-12 11:12:14 字数 252 浏览 3 评论 0原文

我在全新安装的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素食主义者 2025-01-19 11:12:14

我建议 wp-config.php 已经在存储库中了!?您必须使用以下方法删除它们:

  1. 添加到 .gitignore 文件 wp-config.php
  2. 从存储库中删除: git rm --cached .
  3. 然后 git add . 并提交git commit -m“将 wpConfigPhp 添加到 gitignore”

I suggest that wp-config.php is already in the repository!? You have to remove them with:

  1. Add to your .gitignore file wp-config.php
  2. Remove from repository with: git rm --cached .
  3. Then git add . and commit with git commit -m "add wpConfigPhp to gitignore"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文