git保存用户密码

2019-05-29  本文已影响0人  RyanYuanHu

1. 保存密码:

git config credential.helper store

全局配置方式:

git config --global credential.helper store

或者手动修改项目.git\config文件

[credential]

    helper = store

2. 保存密码一定期限:

git config --global credential.helper cache

输入的密码缓存默认15分钟.

或者指定缓存时间:

git config --global credential.helper "cache --timeout=3600"

上一篇 下一篇

猜你喜欢

热点阅读