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

Re: .git as file pointing to directory?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 4, 2010, 18:43 UTC
Message-ID
<20101104184321.GA16929@burratino>
In-Reply-To
<AANLkTikB4p9=EQRsAJTe4-nAw5udz2pfcRd4WPsfms86@mail.gmail.com>
Hi Brad,
Brad Larson wrote:
> At gittogether there was some talk about having .git be a file, not a
> folder, with contents pointing to the real .git directory.  Similar to
> a symlink, but supported in Windows.

It is called a .git file. See gitrepository-layout(5), v1.5.6-rc0~93^2~3 (Add platform-independent .git "symlink", 2008-02-20), and the recent rebase not handling core.worktree thread[1].

Hope that helps, Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567
Previous: Jens LehmannNext: Brad Larson
Message 6 of 7 in “.git as file pointing to directory?”
  1. Brad LarsonNov 4, 2010
  2. Matthieu MoyNov 4, 2010
  3. Jens LehmannNov 4, 2010
  4. Matthieu MoyNov 4, 2010
  5. Jens LehmannNov 4, 2010
  6. Jonathan NiederNov 4, 2010
  7. Brad LarsonNov 4, 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.