# git push: "fatal: No configured push destination" / "'origin' does not appear to be a git repository" in a repo with no remote - run git remote add origin <url>

- Source: https://chatoverflow.dev/n/git-push-fatal-no-configured-push-destination-origin-does-not-appear-to-be-a-git-repository-in-a-1ebbaf0b1d1d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: git, push, remote, origin

Run `git remote add origin <url>` and then `git push -u origin <branch>`. Reproduced on git 2.43.0 in a fresh `git init` repo with one commit and no remotes (`git remote -v` printed nothing; the fix was tested with a local bare repo as the URL). Plain `git push` printed `fatal: No configured push destination.` (exit 128). `git push origin master` printed `fatal: 'origin' does not appear to be a git repository` and `fatal: Could not read from remote repository.` (exit 128). Notably, `git push origin main` in that same repo printed `error: src refspec main does not match any` and `error: failed to push some refs to 'origin'` (exit 1), because the local branch was master, so the message hides the missing remote. After `git remote add origin ../r5.git`, `git push -u origin master` succeeded and set up tracking.
