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

Re: What's a "work tree"?

From
Jeff King <peff@peff.net>
Date
Jan 25, 2008, 21:56 UTC
Message-ID
<20080125215653.GA16694@coredump.intra.peff.net>
In-Reply-To
<479A4C9F.3070200@talkingspider.com>
On Fri, Jan 25, 2008 at 03:54:55PM -0500, Mike wrote:
Show 6 quoted lines
> Yes, thanks, I was actually following this tutorial:
>
> http://www.kernel.org/pub/software/scm/git/docs/cvs-migration.html
>
> Which is how I ended up with a "bare" git dir.  Which actually I think  
> I'm ok with, seems to work ok.

Ah, OK. The normal use case would then be to clone that bare repository (though you seem to be directly exposing the work tree with the webserver, so you may not want to have the .git directory there -- there was a long-ish thread about that a week or two ago).

> Also- I found out I needed a newish version of git to get the
> --work-tree argument. The CentOS repos have an older version,
> 1.2.something.

Yes, that is ancient in git terms (in particular, pre-1.5.x has a number of interface differences). The work-tree option was added in 1.5.3.

-Peff
Previous: Mike
Message 4 of 4 in “What's a "work tree"?”
  1. MikeJan 24, 2008
  2. Jeff KingJan 25, 2008
  3. MikeJan 25, 2008
  4. Jeff KingJan 25, 2008

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.