gitee 私有仓库 Linux 下免输入账号密码 || webhook 使用
root 用户:
# cd ~/
# touch .git-credentials
# vim .git-credentials
内容:
https://account:password@gitee.com
执行:
# git config --global credential.helper store
验证是否成功:
# cat ~/.gitconfig
如果出现:
[credential]
helper = store
使用sudo 执行 webhook.sh
var_dump(shell_exec('sudo sh webhook.sh'));
本作品采用《CC 协议》,转载必须注明作者和本文链接
赞T_T