git 设置只输入一次用户名和密码

https方式每次都要输入密码,非常不爽

按照如下设置可只输入一次

记住密码(默认15分钟):

git config --global credential.helper cache

自己定义时间(一小时后失效):

git config credential.helper 'cache --timeout=3600'

永久存储密码:

git config --global credential.helper store
posted @ 2019-03-29 16:26  快速奔跑的大米粒  阅读(1203)  评论(0编辑  收藏  举报