使用git的公共仓库,下面的方法可以让git“记住密码”
==================================================================
在"C:\Users\[LoginUser]\.gitconfig" 文件 或 "项目/.git/config"文件 里增加两行:
[credential]
helper=store
或者具体某项目记住账号/密码:进入修改“项目/.git/config”,增加
[credential]
helper=store
下次git操作提示输入帐号密码后就会自动往了,帐号和密码就保存在 C:\Users\[LoginUser]\.git-credentials里,如:
https://uaserAccount:password@git.oschina.net