记住密码
在 repo 对应的文件夹中
git config --global credential.helper store
git pull
第一次 pull 输入用户名和密码,此后就不用输入了
取消记住密码
因为在用户目录的 .git-credentials 文件中保存了密码,注意是明文保存的,如下一行:
https://account:password@github.com
感觉不是很安全!!所以要取消记住密码的话,将该文件删除!
打开 .git-config 文件,将 credential 字段删除
[credential]
helper = store
不安全!!不安全!!不安全!!真正免输密码的操作见: github 免输密码 pull/push

2417

被折叠的 条评论
为什么被折叠?



