git保存帐号密码

1
2
3
4
5
6
7
8
9

git config credential.helper cache
git config --global credential.helper cache
# 可以自定义缓存时间,以下是缓存1小时
git config credential.helper 'cache --timeout=3600'
git config --global credential.helper 'cache --timeout=3600'
# 也可以永久缓存
git config credential.helper store
git config --global credential.helper store