Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this questionI have web site online now I want to connect it with version control. It deploy on shared host. Because When change online it effect the site I want try local and deploy changes.
I downloaded all files of WP site and connect with DB but when click It redirect to online.
I want to connect shared host with git
Closed. This question needs to be more focused. It is not currently accepting answers.Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this questionI have web site online now I want to connect it with version control. It deploy on shared host. Because When change online it effect the site I want try local and deploy changes.
I downloaded all files of WP site and connect with DB but when click It redirect to online.
I want to connect shared host with git
You should familiarize yourself with a Version Control System. Most people are using Git these days, however, there are other systems such as
And plenty of others.
The way I typically see WordPress projects in Version Control is the following:
DB_PASS
or your salts in a repo, which can be bad if you don't want other collaborators or possibly the public seeing that information (depending on where you host your code)Next, you need a way to hook your versioning system up to your server. This will depend on what you use for VCS and where your site is hosted, etc. Generally, you'll want some kind of task that can "listen" for changes in your repository and automatically pull the latest changes, prepare your files, and push them up to your live server.
Your question is really too broad to give you anything concrete to go on, I would just learn something like Git and familiarize yourself with good workflow practices (how to branch and merge, how to avoid and handle merge conflicts, etc).