0

I used to work on Github at company, usually when I commit some change on Github, push it , then the change parts will automatically upload to the remote FTP server so I can view it on the web without download all the code on Git then push it to FTP by myself again.

Does anyone know how to do that? Now I want to set up this for my own project, but I only know how to push code to Git, don't know how to automatically upload the stuff on Git to Server.

I heard someone says use Git-FTP, but I download it , totally don't know how to use it. Hope someone can explain it to me or any tools you know.

Thanks in advanced!

4

1 回答 1

1

一种不使用外部软件的简单方法是使用一个post-commit钩子来更新存储库(例如在另一台服务器上),然后将文件上传到 FTP。

于 2013-11-14T17:11:06.523 回答