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.
Repository not foundrepository not found 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
- Verify the URL in the browser while logged in
- Check git remote -v
- Clear cached credentials or use the right account/token
Detailed fix by platform
Git
git credential-manager erase # or remove github.com from macOS Keychain / Windows Credential Manager
How to diagnose
- URL — Correct owner/repo?
- 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:
Similar errors
- AADSTS50126 AADSTS50126: Error validating credentials due to invalid username or password
- auth/invalid-credential Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials)
- Authentication failed fatal: Authentication failed for 'https://github.com/x/y.git/'
Most viewed in Git
- Git SSL certificate problem fatal: unable to access 'https://…': SSL certificate problem: unable to get local issuer certificate
- kex_exchange_identification kex_exchange_identification: Connection closed by remote host
- rebase in progress fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 12 Oct 2026