git config --global credential.helper store之后再次执行git push 或者git pull这时候还需要输入用户名和密码 下次就不需要了 转载于:https://www.cnblogs.com/igoodful/p/11388938.html