origin not a repository 🌿 Git

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

  1. git remote add origin <url>
  2. Check names with git remote -v

Detailed fix by platform

Git

  1. git remote add origin git@github.com:owner/repo.git && git push -u origin main

How to diagnose

  1. Remotes — git remote -v
  2. 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.