Answer the question
In order to leave comments, you need to log in
How can a remote git repository on its server create a working directory?
Hello dear readers of my question. I have a server. On this server there is a site and git is installed. I created a remote repository on it so that I can send all changes there from my working computer. But, as it turned out, git does not store the project files, but only stores the changes that have happened to this project. Therefore, every time I have to connect to the server via SSH, go to the project folder, and then pull from the remote repository to this project in order to apply the changes from the working computer.
Question: Is there any way I can make it so that after I push changes to a remote repository on the server, git will automatically apply those changes to the project?
Answer the question
In order to leave comments, you need to log in
Another option is to use cron. And run Pull every couple of hours, depending on the frequency of changes. The only negative is that there is no feedback as such.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question