摘要

利用Gitee的WebHook进行自动部署项目,需要对git进行免密pull

正文

1、创建文件

在~/下, touch创建文件 .git-credentials,
touch .git-credentials

2、用vim编辑此文件

vim .git-credentials

3、编辑文件内容

https://{username}:{password}@{git链接地址}
例如:http://zbw:zbw123@gitee.com

4、在终端下执行命令

1
git config --global credential.helper store