From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: Cloning empty repositories, was Re: What is the idea for bare repositories? Date: Tue, 13 Nov 2007 16:25:00 -0800 Message-ID: <7vejetr7vn.fsf@gitster.siamese.dyndns.org> References: <86k5on8v6p.fsf@lola.quinscape.zz> <20071112131927.GA1701@c3sl.ufpr.br> <200711121719.54146.wielemak@science.uva.nl> <18232.35893.243300.179076@lisa.zopyra.com> <7v4pfr2kmh.fsf@gitster.siamese.dyndns.org> <7vir46t2cc.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , Bill Lear , Jan Wielemaker , git@vger.kernel.org To: Matthieu Moy X-From: git-owner@vger.kernel.org Wed Nov 14 01:25:39 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1Is64Z-00009U-5a for gcvg-git-2@gmane.org; Wed, 14 Nov 2007 01:25:39 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760577AbXKNAZV (ORCPT ); Tue, 13 Nov 2007 19:25:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760277AbXKNAZV (ORCPT ); Tue, 13 Nov 2007 19:25:21 -0500 Received: from sceptre.pobox.com ([207.106.133.20]:44471 "EHLO sceptre.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754521AbXKNAZS (ORCPT ); Tue, 13 Nov 2007 19:25:18 -0500 Received: from sceptre (localhost.localdomain [127.0.0.1]) by sceptre.pobox.com (Postfix) with ESMTP id 764582F0; Tue, 13 Nov 2007 19:25:39 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sceptre.sasl.smtp.pobox.com (Postfix) with ESMTP id CA7B8954CC; Tue, 13 Nov 2007 19:25:33 -0500 (EST) In-Reply-To: (Matthieu Moy's message of "Tue, 13 Nov 2007 23:01:00 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Matthieu Moy writes: > (2) > > $ mkdir ~/bare-repo > $ cd ~/bare-repo > $ git --bare init > $ cd > $ mkdir local/non-bare > $ cd local/non-bare > $ git init ... If your publishing repo is local like the above, then $ mkdir /tmp/junk && cd /tmp/junk $ git init; tar xf /tmp/project.tar; git add .; ... populate ... $ git commit -m initial $ cd /else/where/to/publish $ git clone --bare /tmp/junk myproject.git $ rm -fr /tmp/junk would be enough to get your published repository started, isn't it? Then wouldn't: $ cd $HOME $ git clone /else/where/to/publish/myproject.git myproject set up your ~/myproject exactly the same way as other people who will work with that published repository?