美文网首页
linux git pull 免密操作

linux git pull 免密操作

作者: jiayifang1 | 来源:发表于2019-08-21 13:35 被阅读0次

1、创建文件

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

2、用vim编辑此文件

vim .git-credentials

3、编辑文件内容

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

4、在终端下执行命令

git config --global credential.helper store

相关文章

网友评论

      本文标题:linux git pull 免密操作

      本文链接:https://www.haomeiwen.com/subject/rbsbsctx.html