[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git question. Is there a way of duplicating a git repository?
From: |
David Kastrup |
Subject: |
Re: Git question. Is there a way of duplicating a git repository? |
Date: |
Mon, 16 Nov 2015 09:42:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Alan Mackenzie <address@hidden> writes:
> Hello, John.
>
> On Sat, Nov 14, 2015 at 10:17:33AM -0800, John Wiegley wrote:
>> >>>>> Alan Mackenzie <address@hidden> writes:
>
>> > So, is there any convenient way of duplicating a repo (using hard links,
>> > and
>> > preserving config info)?
>
>> A clone on the same device uses hard-links by default.
>
> But what git calls a "clone" is not a duplicate repo. It is radically
> different from the original. In particular, the new repo's "remote
> origin" is set to the original repo; I want it to duplicate what the
> original repo had set.
git clone --mirror
Curiously, this implies --bare but you can just edit the config file
afterwards and remove the `bare' setting.
--
David Kastrup
- Git question. Is there a way of duplicating a git repository?, Alan Mackenzie, 2015/11/14
- Re: Git question. Is there a way of duplicating a git repository?, Achim Gratz, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, Dmitry Gutov, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, Liang Wang, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, Ivan Shmakov, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, David Reitter, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, chris . nixon, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, John Wiegley, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, Andreas Schwab, 2015/11/15
- Re: Git question. Is there a way of duplicating a git repository?, Andy Moreton, 2015/11/16
- Re: Git question. Is there a way of duplicating a git repository?, Ken Brown, 2015/11/16
- Re: Git question. Is there a way of duplicating a git repository?, Mike Gerwitz, 2015/11/16
- Re: Git question. Is there a way of duplicating a git repository?, Paul Eggert, 2015/11/16
- Re: Git question. Is there a way of duplicating a git repository?, Steinar Bang, 2015/11/16