git 如何记住密码

方法1:
.git目录下config文件
增加:永久记住
[credential]
helper = store


方法2:
修改本地缓存文件
系统盘用户目录下,.gitconfig文件增加
[credential]
helper = store

.git-credentials文件增加:
https://账号:密码@git.oschina.net
图书字符需要转码,比如@转码为%40


猜你喜欢

转载自dada-fangfang.iteye.com/blog/2269783