git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Nicolas Morey-Chaisemartin <devel@morey-chaisemartin.com>
Cc: "Boyd Stephen Smith Jr." <bss@iguanasuicide.net>, git@vger.kernel.org
Subject: Re: Newbie Query
Date: Tue, 20 Jan 2009 18:51:25 -0500	[thread overview]
Message-ID: <20090120235125.GD17746@coredump.intra.peff.net> (raw)
In-Reply-To: <49764647.1080606@morey-chaisemartin.com>

On Tue, Jan 20, 2009 at 10:46:47PM +0100, Nicolas Morey-Chaisemartin wrote:

> 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.

It has been a long time since I have done this. It used to be that you
could simply "mv foo/.git foo.git" and be done with it. These days I
think you would also need "git config core.bare true". But I haven't
actually tested it recently.

You may also want to tweak other config settings (e.g., bare
repositories do not generally have reflogs turned on, but non-bare do).

-Peff

  parent reply	other threads:[~2009-01-20 23:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20 19:19 Newbie Query Chris Willard
2009-01-20 20:00 ` Tomas Carnecky
2009-01-20 20:16 ` Sverre Rabbelier
2009-01-20 20:17 ` Reece Dunn
2009-01-20 21:07   ` Nicolas Morey-Chaisemartin
2009-01-20 21:34     ` Boyd Stephen Smith Jr.
2009-01-20 21:46       ` Nicolas Morey-Chaisemartin
2009-01-20 22:24         ` Boyd Stephen Smith Jr.
2009-01-20 23:51         ` Jeff King [this message]
2009-01-21  0:05           ` Johannes Schindelin
2009-01-21 14:31 ` Chris Willard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090120235125.GD17746@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=bss@iguanasuicide.net \
    --cc=devel@morey-chaisemartin.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).