相信很多 git 新手都会遇见这样的问题,每次 git pull 都需要输入账号密码,如下图:
解决方法:
Centos 系统:
[root@banyue ~]# vi .gitconfig
加入这段话即可:
[credential]
helper = store
Windows 系统:
vi .gitconfig
[credential]
helper = store
加入之后, git push , git pull 还需输入一次账号密码,此后就不需账号密码。
如有侵权请邮件通知