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

Re: Make a non-bare repo bare.

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jul 16, 2009, 11:39 UTC
Message-ID
<2e24e5b90907160439i29171e9fka3baf6bf871a6011@mail.gmail.com>
In-Reply-To
<7vbpnlbbln.fsf@alter.siamese.dyndns.org>
On Thu, Jul 16, 2009 at 8:03 AM, Junio C Hamano<gitster@pobox.com> wrote:
Show 14 quoted lines
> Tim Visher <tim.visher@gmail.com> writes:
>
>> Hello Everyone,
>>
>> I recently had occasion to make a previously non-bare repo bare.  Is
>> there any way to do this?  It will not allow me to delete a branch
>> that I'm on so I wasn't sure how to proceed.
>
> Funny.
>
>    http://article.gmane.org/gmane.comp.version-control.git/123303
>
> It is posed as a question but describes the correct (and officially
> supported) procedure.

The linked procedure uses git clone --bare. It is my belief (and please correct me if I'm wrong) that only a git clone --mirror actually does what you want here -- a mere "bare" clone would lose your remotes and their tracking branches would it not?

If I'm wrong please correct me...
Previous: Sitaram ChamartyNext: Tim Visher
Message 10 of 13 in “Make a non-bare repo bare.”
  1. Tim VisherJul 15, 2009
  2. Paolo BonziniJul 15, 2009
  3. Tim VisherJul 16, 2009
  4. Jeff KingJul 16, 2009
  5. Junio C HamanoJul 16, 2009
  6. Graeme GeldenhuysJul 16, 2009
  7. Mike RalphsonJul 16, 2009
  8. Junio C HamanoJul 16, 2009
  9. Sitaram ChamartyJul 17, 2009
  10. Sitaram ChamartyJul 16, 2009
  11. Tim VisherJul 16, 2009
  12. Junio C HamanoJul 16, 2009
  13. Sitaram ChamartyJul 17, 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.