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