[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: |
chris . nixon |
Subject: |
Re: Git question. Is there a way of duplicating a git repository? |
Date: |
Sat, 14 Nov 2015 17:57:31 +0000 |
User-agent: |
mu4e 0.9.15; emacs 25.1.50.1 |
Assuming you havn't done anything fancy with your clone and that
you have a recent version of git (at least 2.5) you can use
git worktree add -b emacs-25 ../emacs-25 origin/emacs-25
From the root of the current clone to create a new worktree at
../emacs-25 that shares the current repository's .git repo.
Chris
Alan Mackenzie writes:
> Hello, Emacs.
>
> Now that we've cut the emacs-25 release branch, I'd like to have a
> distinct repository for this.
>
> I could simply download another copy from savannah, but this would
> (presumably) be a distinct copy, rather than hard linking the repository
> files. This would cost me disk (and backup) space.
>
> Or I could clone my master repository to make emacs-25. But this would
> make the new repo firmly subordinate to the master repo, rather than
> directly with savannah.
>
> So, is there any convenient way of duplicating a repo (using hard links,
> and preserving config info)?
--
signature.asc
Description: PGP signature
- 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 <=
- 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