In the second article in our series on using version control with WordPress, we go beyond the basics, introducing an improved directory structure and looking at how we can use WordPress as a Git submodule. In upcoming articles, we'll discuss dependency management using Composer and consider the role of the database in our workflow. Be sure to check out article 1 , 3 and 4 — and get notified when the next post in this series is available, simply by signing up for our newsletter or by following us on Twitter. The methodology consists of twelve recommendations on how best to handle such concerns as configuration, logging and dependency management. To what degree this methodology can and should apply to a WordPress site is debatable. However, the first factor is probably a good recommendation for just about any long-term project involving code today: in short, it states that the project should consist of a single version-controlled codebase. This is what we'll take a look at next. In the previous article, we considered a site with a custom theme, with only the theme in version control. Yet there are parts of the project outside the theme that contribute to the final site: the WordPress code itself is an example of this.
Configuring WordPress to use Git submodule
Level up with WP Pusher
Work fast with our official CLI. Learn more. If nothing happens, download GitHub Desktop and try again.
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I'm currently working with a workflow that makes use of Wordpress as a submodule under git. My workflow involves adding a submodule to my project from the following URL:. Doing this seems to grab the most up-to-date Wordpress version, including the non-stable alpha versions. I simply want to grab the most recent stable release, and I'm wondering whether there is some specific syntax I can add to the git URL above that allows me to specify a specific branch perhaps?
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. However when I go and check the WordPress dashboard it still tells me that I still need to update to 3.