gitea搭建文档网站

最后发布时间:2023-09-05 23:38:50 浏览量:

执行Git Hooks

[security]
[..]
DISABLE_GIT_HOOKS = false

/application/codeRepository/data/gitea-repositories/mbiolance-it/admin-doc.git/hooks/my-script,sh

#!/bin/bash
cd /application/php/doc/detection
echo `pwd` > /application/php/doc/detection/abc.txt
unset GIT_DIR
git  pull

git pull不执行需要添加unset GIT_DIR stackoverflow

快捷入口
Linux 思维导图 浏览PDF 下载PDF
分享到:
标签