git hooks 實現自動部署

咱們 須要兩個目錄git git 服務器倉庫目錄 例如: /mnt/test.git web服務器目錄 例如: /data/test Git Hooks 咱們使用的是服務端鉤子 post-receive,它位於/mnt/test.git/hooksweb 當咱們在本地執行push命令到git服務器的時候,服務器會自動觸發post-receive鉤子。 配置post-receive 先在 /data
相關文章
相關標籤/搜索