简体   繁体   English

如何将文件从GitHub移动到Web服务器

[英]How to move files from GitHub to web server

I am developing an application where client is using GitHub for source control (I am new to GitHub). 我正在开发一个应用程序,其中客户端使用GitHub进行源代码控制(我是GitHub的新手)。 I was asked to create an account on Git and then I was added to a repository. 我被要求在Git上创建一个帐户,然后我被添加到存储库中。 I cloned repository on my local machine, Did some work and now Commited and pushed files on GitHub using SourceTree . 我在我的本地机器上克隆了存储库,做了一些工作,现在使用SourceTree在GitHub上SourceTree和推送文件。 I logged in to that Git account and it is showing my last commits. 我登录到那个Git帐户,它显示了我最后的提交。

Now my client has asked me to upload files from Git to server. 现在我的客户端要我将文件从Git上传到服务器。 I haven't done it before, I searched but couldn't be able to find the solution. 我之前没有这样做,我搜索过但无法找到解决方案。

So kindly guide me how can I upload my commits files to server from Github? 所以请指导我如何从Github上传我的提交文件到服务器?

One simple way is just to git clone from GitHub on the server itself. 一个简单的方法就是到git clone服务器本身从GitHub。 Then when you want to update, it's just git pull . 然后当你想要更新时,它只是git pull If you can't do that, you can just rsync the files to the server from your development copy. 如果您不能这样做,您可以从开发副本rsync文件到服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM