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

Re: Newbie Query

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Jan 20, 2009, 21:34 UTC
Message-ID
<200901201534.16571.bss@iguanasuicide.net>
In-Reply-To
<49763D2B.1000607@morey-chaisemartin.com>
On Tuesday 2009 January 20 15:07:55 Nicolas Morey-Chaisemartin wrote:
Show 8 quoted lines
>I did the rookie mistkae on the central server to create the main
>reposity in non-bare mode. So i need to checkout the HEAD revision each
>time I push.
>Is there a cleaner way to convert a non-bare git repo into a bare repo
>than cloning it?
>My repo have a lot of remote branch registered, and cloning them to a
>new bare repo mean I'll have to add all those remote branches again
>(except if there is another trick here I don't know about).

Well, if you can make sure no one is pushing into the repo for a bit: clone it and replace the original with a symlink to new, bare one. Your clients will be able to use the same URL, so they should be happy. (I haven't tried this, but it should work.)

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
Previous: Nicolas Morey-ChaisemartinNext: Nicolas Morey-Chaisemartin
Message 6 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.