1.永久缓存 Git 凭证,生成.git-credentials文件 执行以下命令,设置 Git 使用 store 凭证帮助程序: git config --global credential.helper store`在这里插入代码片` 执行结果: 执行后输入命令拉取或提交代码,输入账号密码后后面将不再需要重新输入