git config --global credential.helper store git push origin master 提示输入用户名和密码,并记录,下次再提交,无需再次输入。 参考 解决向github提交代码是老要输入用户名密码