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?