git http 免密码登录

老板没有配置 ssh, 现在是http, 每次都要登录账号密码,怎么避免这种情况呢?

阅读 7k
1 个回答

可以将你的密码缓存下来,只用输一次密码,以后都可以不用输入了。缺点就是密码都明文保存在~/.git-credential文件中。
Git for linux

git config --global credential.helper cache

Git for windows

git config --global credential.helper wincred
推荐问题