1、方式一
找到如下目录:
image.png
打开文件.gitconfig
image.png
在文件中添加红色框中内容
[credential]
helper=store
2、方式二
使用命令:
#永久记住密码
git config --global credential.helper store
# 临时记住密码 1小时
git config credential.helper ‘cache –timeout=3600’
找到如下目录:
打开文件.gitconfig
[credential]
helper=store
使用命令:
#永久记住密码
git config --global credential.helper store
# 临时记住密码 1小时
git config credential.helper ‘cache –timeout=3600’
本文标题:git https记住密码
本文链接:https://www.haomeiwen.com/subject/lxmoaftx.html
网友评论