如果你用git-bash从远程pull拉取或者push提交代码都要输入密码,那么执行下面命令即可 git config --global credential.helper store 但是还得输入一次