[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: |
Mike Gerwitz |
Subject: |
Re: Git question. Is there a way of duplicating a git repository? |
Date: |
Sat, 14 Nov 2015 21:46:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
On Sat, Nov 14, 2015 at 11:20:27 +0000, Alan Mackenzie wrote:
> So, is there any convenient way of duplicating a repo (using hard links,
> and preserving config info)?
Each branch has its own tracking branch (upstream). So you can just
branch off of emacs-25, and either keep that local copy, or set the
upstream to your own remote repository:
$ git checkout emacs-25
$ git checkout -b foo
$ git remote add my-origin path/to/remote/repo
$ git push --set-upstream my-origin foo
This is as close to a hard-copy as you'll get.
--
MIKE Gerwitz
Free Software Hacker | GNU Maintainer
http://mikegerwitz.com
FSF Member #5804 | GPG Key ID: 0x8EE30EAB
signature.asc
Description: PGP signature
- Re: Git question. Is there a way of duplicating a git repository?, (continued)
- 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 <=
- 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