From the course: WordPress: Workflows
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
An example theme development workflow with Git - WordPress Tutorial
From the course: WordPress: Workflows
An example theme development workflow with Git
- [Narrator] Once you have everything we've talked about so far in place, it's time to consider a development workflow for Git. Let's take a look at GitFlow, which is both popular and pretty straightforward. First, on your computer, set up two branches, the master branch with the current stable version of the theme, and the development branch, where you'll do all the development. Typically, you would push the master branch to the live staging server, while the development branch sits on your computer. The development branch can also get pushed to your dev-server. For small changes, make them in the development branch, test it in the browser on your computer, and if they work, commit them with a descriptive message. If you want to add a new feature or make substantive changes that may cause problems if it doesn't work, create a new branch called a feature branch and do the development here, rather than directly on the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Building custom sites with Wordpress1m 12s
-
Defining roles and responsibilities2m 2s
-
Creating multiple environments2m 56s
-
Publishing content to the staging server1m 37s
-
Setting up a local dev environment1m 30s
-
Syncing content between environments1m 39s
-
Using version control1m 42s
-
An example theme development workflow with Git2m 44s
-
Testing the site1m 30s
-
Taking the site live1m 34s
-
Wrapping up1m 10s
-
-
-