解决git每次都要输入账号密码

第一次使用git时已经设置全局参数了

$ git config --global user.name 'name' 
$ git config --global user.email 'email' 

但最近每次push还是要输入账号、密码

解决

$ git config --global credential.helper store

待下一次提交代码的时候,输入了正确的用户名和密码,之后就不需要输入用户名密码

猜你喜欢

转载自blog.csdn.net/weixin_43438052/article/details/112568733