1.在服务器上创建一个git创库
git --bate init mynewpro ./
2.切到mynewpro目录中
git自动部署
3.切到hooks中
git自动部署
4.如果没有post-update就使用命令cp post-update.sample post-update
5.vim编辑post-update加入以下代码
git自动部署
--work-tree=/usr/local/nignx-1.2.9/html/mynewpro是我项目文件目录
--git-dir=/mynewpro是我git仓库的地

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-07-28
  • 2021-06-20
  • 2021-05-09
  • 2021-10-21
  • 2021-07-18
  • 2021-10-02
猜你喜欢
  • 2021-12-27
  • 2021-12-21
  • 2022-01-18
  • 2022-12-23
  • 2021-08-02
  • 2022-01-04
  • 2021-06-24
相关资源
相似解决方案