最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What to do with the .git folder in a WordPress plugin during local development

programmeradmin0浏览0评论

I'm developing a WordPress plugin. I have initialized git (git init) in my plugin folder. This created a hidden .git folder in the root directory.

I have to test some functionality for which I have to uninstall the plugin. To do this I have to actually delete the plugin via the WordPress plugin dashboard.

Whenever I click uninstall I'm greeted by the following message:

"Could not fully remove the plugin plugin-name/plugin-name.php"

I figured this has to do with the hidden .git folder not being removed. When I manually remove the .git folder and then click uninstall, the uninstall proceeds as it's supposed to.

Am I overlooking something here, is there a way of handling this during local development?

Or is there some better way of approaching this issue?

发布评论

评论列表(0)

  1. 暂无评论