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

`

相关推荐
lbb 小魔仙23 分钟前
Git + Python 项目工作流最佳实践:pre-commit、CI、CHANGELOG 自动化
git·python·ci/cd
Xu_youyaxianshen4 小时前
Git 零基础常用指令手册(Gitee / GitHub 通用 )
git·gitee·github
John_ToDebug5 小时前
Git Stash 完全指南:临时保存工作区的艺术
人工智能·git·agent
是宇写的啊18 小时前
Git远程操作
git
our_times1 天前
# Git 高频命令实战指南:从日常开发到进阶协作
git
PBitW1 天前
git 中容易遗忘的点 (二) ⚡⚡⚡
前端·git·面试
PBitW1 天前
git 中容易遗忘的点 (三) 🚀🚀🚀
前端·git·面试
郑州光合科技余经理1 天前
家政预约小程序后端源码深度剖析:支付回调实战
java·开发语言·前端·git·小程序·架构·php
北极糊的狐1 天前
钉钉小程序 Git 版本管理完整流程
git·小程序·钉钉
Fzuim2 天前
当 AI 也成为提交者:ThinkFlow 的 Git 提交规范,是怎么定的
git·agent·thinkflow