赞
踩
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有空行。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。