Git origin-does-not-appear-to-be-git-repository The remote address answered, but the path behind it holds no Git repository.

dev@local: ~/project — git
dev@local~/project$git status
error: origin does not appear to be git repository
Diagnostics Translation
The remote address answered, but the path behind it holds no Git repository.
waiting for resolution...
MediumVersion Control System

Reviewed for reference consistency: August 11, 2026

Code is Safe

SECURE

Git has paused the operation to protect your code. No data has been lost or corrupted.

What To Know

The address was reached and something answered, but the answering thing is not a Git repository — an address-level mistake rather than an authentication or network one.

Where Did It Fail?

Working Tree
Your local files
add
Staging Index
Prepared changes
commit
Local Repo
Commit history
push/fetch
Remote Server
GitHub/GitLab
Git halted to protect the uncommitted files in your active working directory.

Commands That Trigger This

A remote URL pointing at a directory one level above or below the actual repository
An SSH remote whose path lost its leading /srv or ~/ prefix after a server migration
A typo reduced a repo URL to its parent folder before a fetch or push

Technical Background

01

The phrasing matters: 'does not appear to be a git repository' is the remote side's answer, relayed locally. Contrast the two neighbors — 'Repository not found' is an HTTP-level 404 from a hosting service, while the local 'not a git repository' means the machine you sit on lacks a repo. This message sits between them: transport worked, target was wrong.

02

Verification is cheap because the failure is address-shaped. Comparing the configured URL with the clone string from the hosting UI, and listing remote refs, separates an address mistake from a permissions problem.

Underlying Causes

The path component of the remote URL does not contain a valid repository
The repository was moved or renamed on the remote host
SSH connects successfully but lands in a home directory without the repo path
The URL came from a rendered web page rather than the clone endpoint

Frequently Asked Questions

The SSH session itself succeeded — the server accepted the key — but the command run on its behalf could not find a repository at the requested path.

Occasionally. A directory with a damaged or truncated .git structure can fail the remote-side probe with the same message.

Related Git States