Ubuntu自动从Github回购 [英] Ubuntu automatically pull from Github repo
问题描述
我在服务器上安装了git,但是我希望它能够从我的github仓库中取出,只要我推送我在本地进行的更改。
这很混乱,我找不到任何教程。有没有人知道如何做到这一点?
我没有自动从Github中取出,而是自己创建了一个存储库服务器遵循本指南。 如何设置使用GPS与VPS自动部署
这样做是为了让我在本地完成本地网站工作时,在我的服务器上回购。每次服务器得到一个repo改变它将检查到我的网站目录。
我也可以设置我的本地计算机同时推送到Github。非常有帮助的指南,我推荐它。
I installed git on my server but I want it to pull from my github repo whenever I push the changes I made locally.
I've looked into hooks but it's very confusing and I can't find any tutorials. Does anyone know how to do that?
Instead of having it automatically pull from Github, I just made a repository on my own server following this guide. How To Set Up Automatic Deployment with Git with a VPS
What this does is make it so that whenever i'm finished working on my site locally i'll push the repo on my server. Everytime the server gets a repo change it will checkout to my website directory.
I can also set up my local computer to push to Github at the same time, too. Very helpful guide I recommend it.
这篇关于Ubuntu自动从Github回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!