Repository not found Git Origin: Build & delivery OSI layer 7 · Application Last updated 12 Oct 2026

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.

Exact message you may see Repository not foundrepository not found
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 not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

AADSTS50126 — AADSTS50126: Error validating credentials due to invalid username or password (Azure)AADSTS50126auth/invalid-credential — Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials) (Authentication)auth/invalid-credenti…Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication failedbad auth : Authentication failed — MongoDB: MongoServerError: bad auth : Authentication failed (code 8000 / 18) (MongoDB)bad auth : Authentica…broken ref — warning: ignoring broken ref refs/remotes/origin/HEAD (Git)broken refcannot lock ref — error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref (Git)cannot lock refCould not load the default credentials — Google Cloud: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started (Google Cloud / Firebase)Could not load the de…couldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remote …Repositor…

Explore the map of this error Full error map →

🧠 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.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.