From: Dirk Süsserott Date: Wed, 15 Jul 2009 14:21:49 GMT Subject: Re: Correct way of making existing remote repository "bare" Message-ID: <4A5DE5FD.80304@dirk.my1.cc> In-Reply-To: Am 15.07.2009 16:08 schrieb Johannes Schindelin: > Hi, > > On Wed, 15 Jul 2009, Graeme Geldenhuys wrote: > >> Steps I done: >> >> * ssh to remote server >> * git clone --bare -l >> * renamed old repository directory >> * renamed new repository dir to what old repository used to be. >> >> Like I said, this did the tick, but is this the correct way of doing it? > > That's the easiest. However, I regularly avoid those steps by doing > > mv bla/.git bla.git > git --git-dir=bla.git config core.bare true > rm -rf bla > > This requires a bit more familiarity with the Git internals than your > solution, though (although it makes sure that the config is unchanged, as > well as possibly installed hooks). > Dscho, you boiled down my solution to real git commands. Great. -- Dirk