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

An example theme development workflow with Git - WordPress Tutorial

From the course: WordPress: Workflows

Start my 1-month free trial

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…

Contents