remote: Repository not found.解决方法

git报错

remote: Repository not found

某一次git操作时,突然碰到这个问题,写一下解决方法。

查找原因

由于公司电脑和自己电脑总是来回用,所以考虑到是不是账号问题。
会想起这次并没有要求输入账号密码,可能是缓存了之前的。
看了下官方文档中有这句话

Once you’ve authenticated successfully, your credentials are stored in
the Windows credential manager and will be used every time you clone
an HTTPS URL. Git will not require you to type your credentials in the
command line again unless you change your credentials.

所以把电脑保存的账号密码删掉就可以解决问题了

解决问题

取消保存的账号密码

git credential-manager uninstall
git credential-manager install

大功告成!

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值