GitHub Deployments on WordPress.com allow you to manage and deploy code directly from your GitHub repositories. Below, you’ll find answers to some of the most frequently asked questions to help you troubleshoot common issues.
This feature is available on sites with the WordPress.com Business and Commerce plans, and the legacy Pro plan. If you have a Business plan, make sure to activate it. For sites on the Free, Personal, and Premium plans, upgrade your plan to access this feature.
Setting up a connection prepares the environment but does not automatically deploy your code. To deploy, you must either commit new code to the selected branch (if using automatic deployments) or trigger a manual deployment through the connection menu.
This likely means your repository files are attempting to overwrite one or more protected paths, such as internal files or managed plugins and themes. When this happens, the deployment files are ignored during the transfer, and you’ll encounter a “Cannot deploy to protected directory.”
If this issue occurs, review your repository files and ensure you’re not trying to deploy protected files or folders.
To understand which paths are protected, you can list them by running an SSH command on your server. Run the command cd /htdocs && find -not -writable, and you should see something like the following:

If you want to include a plugin or theme that’s listed as a protected path, except Jetpack and Akismet, you can remove symlinked plugins by deleting them through your site’s WP Admin, via SFTP, or using the CLI.