Repository not found 🌿 Git

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

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

Seen on: Git

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?

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.