小工具知识网

当前位置: 首页 > 行业知识 > linux服务器保存git账号密码命令

行业知识

linux服务器保存git账号密码命令

2026-11-30 12:45:17 来源:互联网转载

1.保���git账号密码 git config --global credential.helper store

()

2.查看git账号密码 cd回车 ls -a cat .git-credentials

步骤: 先输入 git config --global credential.helper store 然后进入代码目录,git pull 会提示输入git账号、密码,因为我们提前输入了git config --global credential.helper store命令,会把git账号密码保存到根目录.git-credentials文件中,下次拉取时,就不用输入git账号密码了。

()

注意事项:拉取代码提示报错,可能是git权限不够、git账号密码不对、或者.git-credentials有空行。

上一篇:烟花小镇下载指南,一键获取游戏入口,轻松开启绚烂之旅!

下一篇:帝国软件网站发布指南,详细步骤助你轻松上线!