转:一步设置让TortoiseGit+msysgit记住帐号密码



使用github的公共仓库,但每次提交都要求填写帐号密码,有点麻烦,下面的方法可以让git“记住密码”

==================================================================

在"C:\Documents and Settings\Administrator\.gitconfig" 文件 或 "项目/.git/config"文件 里增加两行:

  1. [credential]    

  2.     helper = store    

设置完毕!



下次git操作提示输入帐号密码后就会自动往了,帐号密码信息会保存在 C:\Documents and Settings\Administrator\.git-credentials里,如下效果:

  1. https://username:[email protected]  

  2. https://myusername:[email protected]  

安全性麻,自己看着办。


你可能感兴趣的:(转:一步设置让TortoiseGit+msysgit记住帐号密码)