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

`

相关推荐
cen__y13 小时前
Linux12(Git01)
linux·运维·服务器·c语言·开发语言·git
bukeyiwanshui16 小时前
20260518 Swift实验
git·swift
qziovv16 小时前
Git 回退场景
大数据·git·elasticsearch
来自大山深处的Doge_18 小时前
解决Git提交更新更改时出错: detected dubious ownership in repository at ...
git
嵌入式爱好者hsw21 小时前
Git 部署本地仓库
git
C137的本贾尼1 天前
Git基本操作(三):版本回退,坐上“时光机”
git
ylifs1 天前
目的驱动式Git用法
git
来尔君1 天前
Git Bash 提示符简化(就是每次敲命令时上面显示的那一行信息)
git·命令行
我叫张小白。1 天前
PyCharm 集成 Git 与 Gitee
git·pycharm·gitee
小雨青年1 天前
Git Bisect 实战:用二分法快速找到引入 Bug 的提交
git·bug