git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trix Knotts <enderk@tuta.io>
To: Git <git@vger.kernel.org>
Subject: git config --global needs to be run in a git directory
Date: Sun, 7 Jan 2024 06:56:20 +0100 (CET)	[thread overview]
Message-ID: <NnXUPNo--3-9@tuta.io> (raw)

Hi! This is a minor issue, but I noticed when I ran `git config --global` from my home directory it gave me this error: `fatal: not in a git directory`. I was able to resolve this simply by moving to a git directory on my machine and rerunning it, so it is not really a big issue. However, I think for convenience it would be nice to be able to run global things like this anywhere. What do y'all think? Would this be easy to change?

BTW this is my first time emailing the git mailing list, so sorry if I did something wrong. Please let me know if so!

--
Trix Knotts (she/they)

             reply	other threads:[~2024-01-07  6:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-07  5:56 Trix Knotts [this message]
2024-01-07  7:14 ` git config --global needs to be run in a git directory Trix Knotts

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=NnXUPNo--3-9@tuta.io \
    --to=enderk@tuta.io \
    --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).