第一步:git config --global credential.helper store; 第二步:git pull /git push; 第三步:输入密码; ok啦,输入一次后就不用再次输入密码啦~~~