Unlock your potential with a Pro Membership
Here is where you propel your career forward. Come join us today. Learn more.
Push the Theme to GitHub
Lab: Part 2c – Header Sass Module – Developer’s Genesis Starter Child Theme
Video Runtime: 02:16
Have you been pushing your theme to a version control service such as GitHub, GitLab, or Bitbucket? You should be. As you complete a module, you will want to save those changes and have a record of what changed. The preferred strategy is to put your theme under version control by creating a repository on one of the services and then using Git to document and push your latest work.
This episode assumes that you have Git installed on your machine and a repository is already created and synched. All of the services give you instructions on how to do this including how to put your theme under version control, such steps such as:
- Go to the service.
- Create a new repository.
- Back on your local machine, navigate to the theme’s directory using the console.
- Then follow the instructions provided on the screen by the service you are using, such as GitHub.
Each time you want to commit new changes, you do:
- Back on your local machine, navigate to the theme’s directory using the console.
- Type:
git add .
- Type:
git commit -m 'and your witty message about the commit'
- Type:
git push origin master
Want to learn about Git? Code School as a great, interactive course that walks you the git commands and has you working within an online console. Give it a try: Learn Git. For good commit messages, Tom McFarlin has an article to help you guide you.
I completed refactoring the #GenesisWP Header Sass Module Share on XYou Rock!
Excellent job! You should be very proud of yourself! You just completed the Header Sass Module. Look at how much you’ve done so far in this lab series. Seriously, great job!
Lab’s Final Code
Get the final code for this lab on GitHub by clicking on this button. This is the code you are building, as you and I walk through how and why, as well as refactoring and other alternatives to make it your own.
What to Do Next?
Your best friend is code, Tonya is making the introductions.
Episodes
Total Lab Runtime: 00:47:58
- 1 Lab Introductionfree 02:45
- 2 Base Stylespro 04:09
- 3 Dividing Up the Title Area Stylespro 05:15
- 4 Title Area Styles - Part 1pro 14:54
- 5 Title Area Styles Part 2pro 06:17
- 6 Header Right Stylespro 12:22
- 7 Push the Theme to GitHubpro 02:16