V
V
Vladimir2016-11-19 02:55:41
git
Vladimir, 2016-11-19 02:55:41

How to organize the development of sites on wordpress with git?

I just started learning Git + I don't understand the process of working with it on hostings.
I am engaged in the creation of sites on Wordpress, the projects are mostly small. Most often I work alone, sometimes other developers are connected.
I work with different hosts. The development process usually looks like this: locally > development server > customer server.
After completion of work at one of the stages, the previous one is no longer supported. For example, after the site is transferred from the development server to the customer's server, nothing else is done on the development server.
The task is to organize development on wordpress with git in such a way that I develop on a local server, push changes to the repository, and make a pool to the desired server.
We need a simple solution, because projects are small and edits are often small. Therefore, I want the intermediate actions related to git not to take a lot of time.
Questions:

  1. How to setup git on hosting?
  2. Can all hosts work with git?
  3. Is it possible to include a wordpress database in a git repository and how to do it?
  4. How will working with the database through git look like in this case, will it be something separate from working with files?
  5. What stages will the development/change process eventually consist of?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel K, 2016-11-19
@Rocket2253

It was already answered above that it is impossible with git on hosting,
I recommend trying grunt or gulp.
It is very convenient and you can set up the upload via FTP and stir up the commit in git beforehand.

R
Rou1997, 2016-11-19
@Rou1997

You can’t work with git on any hosting, only on VPS, in fact, it’s actually a very inconvenient thing, it’s much easier to write comments with the date and time when the change was made, besides, I personally don’t want my code on GitHub or anywhere else upload, let it be private for visitors, but the administrators of GitHub itself can watch it, this is not confidential, I would not approve if I were a customer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question