# remote: Repository not found. fatal: repository 'https://github.com/x/y.git/' not found

**Code:** `Repository not found` · **Category:** Git · **Seen on:** Git

GitHub/GitLab says the repository doesn’t exist — or you lack access to a private repo.

## Meaning

Hosting services return “not found” for private repositories you can’t access. Typos, renamed repos, wrong accounts and cached credentials are typical.

## Common causes

- Typo or repo renamed/moved
- Private repo and you’re authenticated as another account
- Cached credentials for a different user
- Token without repo scope

## Quick fix

1. Verify the URL in the browser while logged in
2. Check git remote -v
3. Clear cached credentials or use the right account/token

## Detailed fix by platform

### Git

1. `git credential-manager erase  # or remove github.com from macOS Keychain / Windows Credential Manager`

## How to diagnose

1. **URL** — Correct owner/repo?
2. **Account** — Which account is used?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/git/repository-not-found)
