PHP实现git部署的方法:首先配置git,并设置sudo免密;然后设置钩子,代码为【touch post-receive】;最后增加钩子可执行权限,代码为【chmod a+x .git/hooks/post-receive】。
技术文章 / 下载软件趣味内容 / 专业带飞