当前位置:   article > 正文

gitconfig 配置文件[credential]使用记录

git config credential

三种存储辅助工具,即mananger、wincred和store。Git可以指定辅助工具(通过配置credential.helper),用来存储本地凭证。
1 manager
若安装Git时安装了GitGUI,自动会在system级别中设置credential.helper为manager。并且不配置所处级别(system、global或者local)如何,一旦设置了manager,都优先使用该方式。
查看不同级别的credential.helper
2 wincred
设置credential.helper,如wincred
3 store
将当前local级别的credential.helper设置成store(过程和前面类似),此时的存储方式变成了store。如果本地没有存储账号信息,当push时输入正确信息,将此保存至home目录下的.git-credentials文件,并且以明文存储,内容如下:
https://userName:pwd@github.com

 

 

参考链接:https://www.jianshu.com/p/0ad3d88c51f4

转载于:https://www.cnblogs.com/7day/p/10966086.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/405414
推荐阅读
相关标签
  

闽ICP备14008679号