From: Nicolas Morey-Chaisemartin Date: Tue, 20 Jan 2009 21:07:55 GMT Subject: Re: Newbie Query Message-ID: <49763D2B.1000607@morey-chaisemartin.com> In-Reply-To: <3f4fd2640901201217x22262655w115cc2a25e32865e@mail.gmail.com> Reece Dunn a écrit : > > If you are committing the files to a shared public repository (e.g. a > central repository, or build server repository), a pussible approach > is to create that as a "bare" repository (one with just the contents > of the .git folder - i.e. it does not have any files checked out). You > can do this by running: > git clone --bare source/git/path/project project.git > you can then clone from this: > git clone my/shared/project.git > and push any changes to it as normal. > > Hi, 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). Regards Nicolas