[ad_1]
I’ve seen alot of WordPress job posting having GIT as requirements and I alread read a few articles about GIT and WordPress. I just want to know your personal experience in using GIT in WordPress. And any suggestions? Currently our site is hosted in godaddy and aws lightsails. Do I need to use Gitlab or Bitbucket? aAn Vaultpress or Wp Pusher?
[ad_2]
Generally when a job posting is asking for git experience with WordPress it means that git is part of the deploy process in some way.
Github, bitbucket, gitlab, azure devops, are all different flavors of the same thing: a remote git repo. They aren’t required for deploying via git, but are the most common way to do so. (Using an action, we hook or pipeline)
You can always just deploy with git by connecting the live site as a remote host and literally git pushing to it as well.
Ive never heard of/used vaultpress or WP pusher so I can’t speak to what role they may or may not play with git.
I’ve generally found using git and GitHub to deploy to work fairly well. We initially used a php deploy script the ran shell_exec to git pull from GitHub. (And then that script would get pinged by a GitHub webhook when we pushed to the “production” branch)
We’ve since then switched to using GitHub actions so we can include a CI/CD pipeline. But that’s it whole own thing. Although it still largely functions the same way from a user perspective. (When we push to production it fires the action to run the pipeline and deploy)
The big thing when using git with WordPress and having a good gitignore. And deciding early what will and won’t live in the repo. (Some people exclude all of WordPress core, for example)