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 协议》,转载必须注明作者和本文链接
wubuze
讨论数量: 1

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!