清楚本地的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 应该就可以了

`

相关推荐
糖少主2 小时前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
console.log('npc')4 小时前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
恋喵大鲤鱼9 小时前
git reflog
git·git reflog
MatrixOrigin10 小时前
MatrixOne Git4Data 技术详解(二):从零跑通所有 Git 原语
git
anew___11 小时前
常用的 Git 工作流
git
shimly12345611 小时前
git diff 生成一部分文件的补丁
git
m0_5791466512 小时前
Git 重置模式详解:四种重置方式的原理与应用场景
git
恋喵大鲤鱼12 小时前
git grep
git·git grep
霸王龙的小胳膊12 小时前
Git基础知识
git
恋喵大鲤鱼13 小时前
git fetch
git·git fetch