清楚本地的git并重新登录

1、执行以下命令:
git config --global --unset credential.helper
git config --system --unset credential.helper

2、再执行 git pull的时候就会提示输入账号密码

3、如果每次git pull 的时候都提示需要输入账号密码 就执行
git config --global credential.helper wincred

这样就会重新配置凭证助手 永久存储账号密码

如果执行完git config --global credential.helper wincred 后再使用git pull 拉取代码报错的话,可能是 有些情况下 wincred 有问题,试试 store,即:先用git config --global --unset credential.helper 清除缓存,再执行 git config --global credential.helper store 这样再使用git pull 应该就可以了

`

相关推荐
jiang_changsheng2 小时前
工作流agent汇总分析 2
java·人工智能·git·python·机器学习·github·语音识别
顶点多余2 小时前
版本控制器-git
linux·git
夔曦3 小时前
Git工程日常下拉/上传完整流程(自用)
git
岱宗夫up3 小时前
GitHub Desktop如何设置中文?这不是个简单问题
git·github
岱宗夫up6 小时前
.env 文件是干啥的?为什么不能提交到 Git?
大数据·git·elasticsearch·搜索引擎·gitee·github·gitcode
家里有只小肥猫19 小时前
git回退某条/多条提交记录
git
何中应21 小时前
IDEA 中让 Git 忽略 .idea 目录
java·git·intellij-idea
小柯博客1 天前
从零开始打造 OpenSTLinux 6.6 Yocto 系统 - STM32MP2(基于STM32CubeMX)(六)
c语言·git·stm32·单片机·嵌入式硬件·开源·yocto
静若繁花_jingjing1 天前
Git分支命令
git