https方式每次都要输入密码,非常不爽
按照如下设置可只输入一次
记住密码(默认15分钟):
git config --global credential.helper cache
自己定义时间(一小时后失效):
git config credential.helper 'cache --timeout=3600'
永久存储密码:
git config --global credential.helper store