gitconfig 配置文件[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