git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
To: git@vger.kernel.org
Subject: [Bug] Misleading error message when run in a non-Git directory
Date: Fri, 24 Apr 2020 01:42:25 +0300	[thread overview]
Message-ID: <c0e916fb-7b0e-1192-e71d-ea6449863e9b@narod.ru> (raw)

git remote add origin ...

produces the error

fatal: remote origin already exists.

when run in the directory which is not initialized by Git (has no .git
folder).

This error message is misleading.

git --version
git version 2.20.1


             reply	other threads:[~2020-04-23 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-23 22:42 Victor Porton [this message]
2020-04-23 23:26 ` [Bug] Misleading error message when run in a non-Git directory brian m. carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c0e916fb-7b0e-1192-e71d-ea6449863e9b@narod.ru \
    --to=porton@narod.ru \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).