使用http协议拉取代码时,每次pull/push都会弹出账号密码框,可以使用git的配置credential.helper来保存每次输入的账号密码到硬盘上,命令git config --global credential.helper store,store表示存到硬盘中,但是按照这样操作后git pull还是弹出密码框,通过git config --list发现此时的配置里有两个credential.helper的配置,应该有些第一个credential.helper=manager-core的影响
在这里插入图片描述
通过命令git config --show-origin --get-regexp credential.helper查找所有的配置
在这里插入图片描述
找到配置 credential.helper=manager-core的地方,打开文件修改为credential.helper=store,再次尝试就可以了
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐