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’