On Wed, Jul 15, 2009 at 11:48:42PM +0200, Paolo Bonzini wrote: > On 07/15/2009 11:43 PM, Tim Visher wrote: > >I recently had occasion to make a previously non-bare repo bare. Is > >there any way to do this? It will not allow me to delete a branch > >that I'm on so I wasn't sure how to proceed. > > Just do "mv repo/.git repo.git; rm -rf repo" (with care!). That used to work, but these days there is a "core.bare" config variable so that git doesn't have to guess whether you are in a bare repo. So you should also do: $ git config core.bare true in the resulting repo (or just before, since your "mv" is obviously not a git command that would care). -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html