通过url从git更新服务器(Update server from git by url)
我有一个使用git的web服务器,我们正在开发它。 我想知道直接从URL获取我的git存储库的方式。 我知道这是可能的,因为我曾经在这样的服务器上工作过。 你只需访问一个URL,由htaccess(无论)执行拉的保护。
这只是PHP中的一个执行吗? 或者,还有更好的方法? 我也想知道这个过程是否像在teraterm(或类似teraterm)中的宏可执行文件一样执行,
它应该可能已经有一些类似的问题(像这样一个如何每天自动更新我的服务器文件从git回购 ),但它并不是我想要的结果。
问候
I have a web server with git and we are 3 working on it. I want to know what is the way to pull my git repository directly from an URL. I know it's possible because I have worked on a server configurated like that. You just had to access to an URL, protected by htaccess (whatever) which execute the pull.
Is that just an exec in PHP? Or is there a better way? I also want to know the process to do the same with a Macro executable in teraterm (or teraterm like)
It should probably already have some similar question (like this one How to update my server files from a git repo automatically everyday) but it's not exacly the result that I want.
Regards
原文:https://stackoverflow.com/questions/48820589