- 控制台中输入以下命令
git config --global credential.helper store
下一次使用git时输入的账号密码会被记录到
~/.git-credentials
中
- 需要临时保存可以使用
git config credential.helper 'cache --timeout=3600'
一小时内不关机则不用重新输入密码
版权属于:一名宅。
本文链接:https://zhaiyiming.com/archives/git-save-account-password.html
转载时须注明出处及本声明
这个是你写的么?我原来就玩过的呀~作者是你?太惊喜了吧~喵~
然而并不(:彡」∠)