Using GitLab for WordPress Theme Source Control and Automated Deployment

Lesson 1 - GIT GitLab and Source Control

Source control is important because it allows you to track changes to your code and rollback if you have made a mistake, it also allows to more easily colaborate with multiple developers working on the same project.

a) Install GIT
https://www.atlassian.com/git/tutorials/install-git

b) Sign up for GitLab -
https://about.gitlab.com/
This is where we will be storing our code which will later be used for deploying to our WordPress installation.

c) Create a branch to work on your code
git checkout -b mywordpresstheme

d) Commit and Push code to your gitlab repository

git add .
git commit -m "my initial commit"
git push

e) Configure GitLab CICD Pipeline for AutoDeployment

🚀 **Support Our DevOps Blog with Your Amazon Shopping!** 🚀 Love shopping on Amazon? Now you can fuel your shopping spree *and* support our blog at no extra cost! Just use our link for your next purchase: **[Shop on Amazon & Support Us!] Browse Stuff on Amazon Every click helps us keep sharing the DevOps love. Happy shopping!

Leave a Comment