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



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

==================================================================
github

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

  1. [credential]    spa

  2.     helper = store    it

设置完毕!密码



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

  1. https://username:987654321@github.com  项目

  2. https://myusername:123456789@other.com  margin

安全性麻,本身看着办。di

相关文章
相关标签/搜索