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

Re: $GIT_DIR usage

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 5, 2007, 12:33 UTC
Message-ID
<Pine.LNX.4.64.0708051332230.14781@racer.site>
In-Reply-To
<46B59F63.8020707@gmail.com>
Hi,
On Sun, 5 Aug 2007, Dan Zwell wrote:
> $ export GIT_DIR="`pwd`/.git_public"
> $ git init
> warning: templates not found /usr/share//git-core/templates/
> Initialized empty Git repository in /home/user/temp/.git_public/

I think that you implicitly created a bare repository with that. Just check if "git config core.bare" returns true.

If so, you need to change that in order to have a working tree.

Hth, Dscho

Previous: Dan ZwellNext: Dan Zwell
Message 4 of 6 in “$GIT_DIR usage”
  1. Dan ZwellAug 5, 2007
  2. Dmitry KakurinAug 5, 2007
  3. Dan ZwellAug 5, 2007
  4. Johannes SchindelinAug 5, 2007
  5. Dan ZwellAug 5, 2007
  6. Johannes SchindelinAug 5, 2007

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.