简体   繁体   中英

Is installing WordPress as a Git submodule a good idea?

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 ):

git clone --recursive https://github.com/Darep/wordpress-boilerplate.git

It has a Wordpress submodule, and include in the main parent repo wp-content .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM