From: Boyd Stephen Smith Jr. Date: Tue, 20 Jan 2009 21:34:12 GMT Subject: Re: Newbie Query 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: >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/ \_/