第一步:进入项目目录,在 git 终端执行以下命令: git config --global credential.helper store 第二步:重新执行一次git pull: git pull 此时再输入账户和密码 输入完之后的git pull 就再也不用输入账户和密码了;