Git HTTPS 如何保存密码

读了一下 git-credential-store 的manual。

在项目下执行 git config credential.helper store 然后 git push 输入密码之后,家目录下就会多出一个文件:

.git-credentials

这个文件明文保存了https克隆所用的用户名和密码。

如果想要更加安全的话,可以改用 git config credential.helper cache。这个默认会在900s之后过期。所以相对更加安全。


更多文章
  • 数据库事务
  • 把网站去掉CSS之后
  • 处理并发的方式
  • 常见的索引方式
  • Golang 实践经验
  • 高性能MySQL笔记第一章
  • 面试的一些技巧
  • HTTP/2 简介
  • 独立运营博客一年的一些数据分享
  • To B(usiness) 和 To C(ustomer)
  • Cookie 中的secure和httponly属性
  • 常见的软件架构套路
  • Google Ads使用体验
  • Go的custom import path
  • 如何挖掘二级子域名?