fatal: 'origin' does not appear to be a git repository
No remote named origin is configured (or it points nowhere valid).
Seen on:
Git
Meaning
Local-only repos (git init) have no remotes until you add one.
Common causes
- Remote never added
- Remote named differently (upstream)
- Wrong URL
⚡ Quick fix
- git remote add origin <url>
- Check names with git remote -v
Detailed fix by platform
Git
git remote add origin git@github.com:owner/repo.git && git push -u origin main
How to diagnose
- Remotes — git remote -v
- Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.
🧠 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026