Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question