S
S
sorry_i_noob2018-10-17 21:26:47
git
sorry_i_noob, 2018-10-17 21:26:47

Is it possible to make commits to hosting using git? And if so, how?

Hello! I want to commit my changes to hosting. I have seen tutorials on how to commit on github, for example. But how to do hosting? Do you need hosting data? I have never seen tutorials on where to enter this data.
As I understand it, you first need to push to github, and somehow pull from the hosting? Can't go directly to hosting?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Ken Jee, 2018-10-17
@Machez

To do this, you must have not just hosting, but at least a configured VPS. On which you will set up Git. You will push to the repository on GitHub, and on the VPS you will pull the changes.

S
solascriptura, 2018-10-18
@solascriptura

Just do a git pull on the hosting and that's it. All you need is to have a git installed on the hosting, and the repository has been configured. (This is not difficult to do). Well...yes, not all hostings support git out of the box. I use VDS from ihor, it does not cause problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question