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

Re: Newbie Query

From
NMNicolas Morey-Chaisemartin <devel@morey-chaisemartin.com>
Date
Jan 20, 2009, 21:46 UTC
Message-ID
<49764647.1080606@morey-chaisemartin.com>
In-Reply-To
<200901201534.16571.bss@iguanasuicide.net>
Boyd Stephen Smith Jr. a écrit :
Show 17 quoted lines
> On Tuesday 2009 January 20 15:07:55 Nicolas Morey-Chaisemartin wrote:
>   
>> 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.)
>   

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. I don't know how bare/non-bare is managed but I guess both types of repo are not differing by much, so it'd be great to have a function to convert from one to another.

Previous: Boyd Stephen Smith Jr.Next: Boyd Stephen Smith Jr.
Message 7 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.