I’m curious as to others’ workflow involving Git and WordPress, and whether or not you choose to install WordPress as a submodule. At first glance, it makes sense to keep my Theme, Plugins, and Uploads separate from the wp core files and easier to update/maintain over time.
Does anyone have any long-term experience and advice when it comes to developing WP with Git?
Does installing WP as a Submodule create any challenges when uploading the site to the Live Server?
You have some projects which followed that approach before.
You can try and play with
Darep/wordpress-boilerplate
(explained in this article):It has a WordPress submodule, and include in the main parent repo
wp-content
.