# 默认缓存15分钟((默认是 “900”,也就是 15 分钟))
git config --global credential.helper cache
# 自定义缓存一个小时
git config --global credential.helper 'cache --timeout=3600'
# 长期缓存
git config -global credential.helper store
# 取消缓存可以使用
git config --global --unset credential.helper