Github git clone [remote: xxx Repository not found.]

223 阅读1分钟

问题

有些小伙伴在IDEA中clone项目或者使用git clone命令的时候会遇到这种情况 remote: Repository not found. repository 'github.com/xxx.git/' not found

原因

原因之一可能为在多用户切换使用的情况下,windows缓存了git账号密码 并缓存在本地的凭据中

windows凭据路径 windows凭据.png

解决

删除掉当前的凭据,当再进行git操作时 会引导进github的账户页面 自动授权为当前github页面的登录账号,想切换为哪个github账号 就在页面登录哪个账号