git服务器自动部署(本身根据本身查的资料以及部署经历总结)

一、添加钩子文件 进入对应Git仓库git cd /home/myrepo.git 建立post-receiveweb touch hooks/post-receive 使用vim打开post-receive将以下shell写入文件中shell #!/bin/sh #author: embbnux #Blog of Embbnux: http://www.embbnux.com
相关文章
相关标签/搜索