git自動部署

環境:centos7git 目標: 本地代碼提交到遠程倉庫,觸發遠程倉庫hook,hook腳本pull代碼到項目目錄web 實現: 略過手動建立服務端倉庫,ssh公私鑰centos 服務器倉庫地址:ruby /git/hello-world.git 配置 git hookbash $ cd /git/hello-world.git/hooks $ vi post-receive 寫入如下內容服務器
相關文章
相關標籤/搜索