git 保存账号密码 config credential.helper store

创建日期: 2024-09-06 17:25 | 作者: 风波 | 浏览次数: 25 | 分类: Git

来源:https://stackoverflow.com/questions/35942754/how-can-i-save-username-and-password-in-git

  1. 先执行命令 git config --global credential.helper store 设置 git 遇到密码是进行保存

  2. 执行 git pullgit clone 等命令,此时如果需要密码,那么 git 会提示输入账号/密码,输入完成后,账号和密码就会被存储在文件 ~/.git-credentials 中。存储格式是明文的。

25 浏览
13 爬虫
0 评论