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

GIT_WORK_TREE environment variable not working

From
RGRon Garret <ron1@flownet.com>
Date
Feb 1, 2010, 01:33 UTC
Message-ID
<ron1-8E7697.17334731012010@news.gmane.org>
What am I doing wrong here?

[ron@mickey:~/devel/gittest]$ pwd /Users/ron/devel/gittest [ron@mickey:~/devel/gittest]$ git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # git/ nothing added to commit but untracked files present (use "git add" to track) [ron@mickey:~/devel/gittest]$ cd [ron@mickey:~]$ export GIT_WORK_TREE=/Users/ron/devel/gittest [ron@mickey:~]$ git status fatal: Not a git repository (or any of the parent directories): .git [ron@mickey:~]$ git status --work-tree=/Users/ron/devel/gittest fatal: Not a git repository (or any of the parent directories): .git [ron@mickey:~]$

Next: Jeff King
Message 1 of 3 in “GIT_WORK_TREE environment variable not working”
  1. Ron GarretFeb 1, 2010
  2. Jeff KingFeb 1, 2010
  3. Ron GarretFeb 1, 2010

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.