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

`

相关推荐
不爱学英文的码字机器8 小时前
Git误操作急救手册大纲
git
A懿轩A8 小时前
【2026 最新】Mac 电脑配置指南:Homebrew 安装换源 + Git 环境配置(保姆级教程)
git
切糕师学AI11 小时前
Visual Studio Git 使用指南
git·elasticsearch·visual studio
蜜汁小强11 小时前
Git Worktree:在不打断当前开发的情况下紧急修复生产问题
git
宇宙realman_99913 小时前
Git 本地版本控制极简使用笔记(Qt 项目专用)
笔记·git
坐吃山猪13 小时前
OpenClaw02_GitHook使用
git·hook·openclaw
莫寒清15 小时前
Git分支命名规范与最佳实践
git
无限进步_16 小时前
深入解析C++容器适配器:stack、queue与deque的实现与应用
linux·开发语言·c++·windows·git·github·visual studio
程序员爱酸奶16 小时前
Git + 云原生:构建坚如磐石的 Kubernetes 配置版本管理
git·云原生·kubernetes
Liu.77418 小时前
vscode使用git和svn
git·vscode·svn