美文网首页
git保存用户密码

git保存用户密码

作者: RyanYuanHu | 来源:发表于2019-05-29 18:45 被阅读0次

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"

相关文章

网友评论

      本文标题:git保存用户密码

      本文链接:https://www.haomeiwen.com/subject/vslutctx.html