linux git pull 免密操作
摘要
利用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 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 张佰万!