git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git config --global needs to be run in a git directory

From
TKTrix Knotts <enderk@tuta.io>
Date
Jan 7, 2024, 05:56 UTC
Message-ID
<NnXUPNo--3-9@tuta.io>
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)

Next: Trix Knotts
Message 1 of 2 in “git config --global needs to be run in a git directory”
  1. Trix KnottsJan 7, 2024
  2. Trix KnottsJan 7, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.