git pull时每次都要输入用户名和密码的解决办法

如果执行git clone下载代码的时使用https://而不是git@git (ssh),当我们执行git pull/push命令时,总是需要输入用户名和密码。

解决办法:
  git bash进入项目目录,执行:

git config --global credential.helper store


  然后会在本地生成一个文本,里面记录了用户名和密码。

原文地址:https://www.cnblogs.com/xy-ouyang/p/12160400.html