Create a WordPress with LocalWP
Create a GitHub Repository
Create an FTP account on your server that points to the theme’s folder
Create the Secret variables GitHub / Settings / Secrets and variables
FTP_SERVER FTP_USERNAME FTP_PASSWORD
Create an Action GitHub / Actions / New Workflow and paste in this snippet in main.yml file
If the sync goes without problems, pull the main.yml config file to your local theme’s folder.
git pull
Create a new file, or take any modifications you need and push them to the git repository.
git add . git commit -m 'First modification' git push