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

Re: Newbie Query

From
Jeff King <peff@peff.net>
Date
Jan 20, 2009, 23:51 UTC
Message-ID
<20090120235125.GD17746@coredump.intra.peff.net>
In-Reply-To
<49764647.1080606@morey-chaisemartin.com>
On Tue, Jan 20, 2009 at 10:46:47PM +0100, Nicolas Morey-Chaisemartin wrote:
> Well I know there are solutions to convert it to a bare repo.
> I was just wondering if there was a "clean" one which really converts
> the repo to a bare one and not create a copy which is bare.

It has been a long time since I have done this. It used to be that you could simply "mv foo/.git foo.git" and be done with it. These days I think you would also need "git config core.bare true". But I haven't actually tested it recently.

You may also want to tweak other config settings (e.g., bare repositories do not generally have reflogs turned on, but non-bare do).

-Peff
Previous: Boyd Stephen Smith Jr.Next: Johannes Schindelin
Message 9 of 11 in “Newbie Query”
  1. Chris WillardJan 20, 2009
  2. Tomas CarneckyJan 20, 2009
  3. Sverre RabbelierJan 20, 2009
  4. Reece DunnJan 20, 2009
  5. Nicolas Morey-ChaisemartinJan 20, 2009
  6. Boyd Stephen Smith Jr.Jan 20, 2009
  7. Nicolas Morey-ChaisemartinJan 20, 2009
  8. Boyd Stephen Smith Jr.Jan 20, 2009
  9. Jeff KingJan 20, 2009
  10. Johannes SchindelinJan 21, 2009
  11. Chris WillardJan 21, 2009

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.