【Git】credential.helper

目录

一. 问题

二. 记录

2.1 删除

2.2 存储 Credentials

2.2.1 缓存

2.2.2 文件

2.3 显示

三. 参考


一. 问题

        自从安全部门把SSH 端口给干掉后,就只能https 了,次哦,每次提交都搞得比较啰嗦和麻烦,有时候提着提着就忘记咋操作了;

        由于有多个仓库,本来想统一设置,后来发现各个代码库要求还不太一样,一个个得定制化设置好了;

        好记性不如烂笔头,记下来后续复制,粘贴吧;

二. 记录

2.1 删除

删除本地仓库配置得密钥:

$ git config --local --unset credential.helper

2.2 存储 Credentials

2.2.1 缓存

$ git config credential.helper 'cache --timeout=300'

2.2.2 文件

$ git config --local credential.helper store

2.3 显示

$ git config --show-origin --get credential.helper

        此时,配置后得信息,在 C:\Users\XXX(您得用户名)\.git-credentials 路径文件中就应该能看到配置得明文信息;

三. 参考

  1. Git - git-config Documentation
  2. Git - gitcredentials Documentation
  3. Git - git-credential-cache Documentation
  4. Git - git-credential-store Documentation

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值