让git记住账号和密码的方法:

  在git bash 中执行命令:git config --global credential.helper store

  输入一次账号密码就可以保存,下次不再提示。

  如果输错了需要重新输入。看这里