gogs配置钩子脚本,代码自动更新

 时间:2024-10-12 08:28:03

1、打开仓库设置中的管理git钩子,通过配置post-receive(提交后执行)来进行自动代码更新,并自动clone项目

gogs配置钩子脚本,代码自动更新

3、#!/bin/bashroot_path='/www/xiaochengxu/project'unset $(git rev-parse --local-env-vars);mkdir -p $root_pathcd $root_path;git clone git@ssh.gogs.com:xiaochengxu/project.git $root_pathif [ $? = 0 ]; then chown -R 1000:100 $root_path && chmod -Rf g+s $root_path && chmod -R 775 $root_pathfigit checkout .;git pull origin master;

gogs配置钩子脚本,代码自动更新
  • 现货投资怎么开户交易
  • 现货白银如何挑选正规交易平台 怎么交易
  • 西式快餐店装修规范
  • 想自学美甲需要到哪里去学习【美甲DIY教程】
  • 现货黄金白银新手教程
  • 热门搜索
    怎么修复硬盘坏道 carry是什么意思 u盘不能格式化怎么办 给生活加点糖作文 乌龟壳烂了怎么办 如何提高免疫力抵抗力 如何排除体内毒素 眼睛充血是什么原因引起的起的 我和恶魔的h生活 mg面膜怎么样