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

`

相关推荐
燐妤16 小时前
梦绘片场 ProjectDream故事总纲场景剧本篇:从项目到成片的 AI 漫剧工作台
人工智能·git·ai·项目开发
JackieDYH1 天前
Git 与 GitHub 新电脑配置指南(从零开始)
git·github·工具·使用教程
Jeanyia1 天前
GitLab 配套 Git 常用命令
git·gitlab
10mAh2 天前
【Git】误删分支、reset --hard 后提交丢了怎么办?——reflog、fsck 与安全恢复实战
数据库·git·安全·回归
Lydro2 天前
CentOS 7 安装高版本git
git·centos 7
guwentian2 天前
Git Worktree 实战:用并行多 Agent 把开发提速 N 倍
大数据·git·elasticsearch·wroktree
不吃鱼的羊2 天前
Git识别未修改的文件有修改
git
蓝黑墨水2 天前
一个git问题的处理
git
互联网中的一颗神经元2 天前
21 — 额外命令:同时开两个窗口、自动检查哨
git
_道隐_2 天前
git stash save 和 git stash push有什么区别?
git