emacs-devel
[Top][All Lists]
Advanced

[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: Paul Eggert
Subject: Re: Git question. Is there a way of duplicating a git repository?
Date: Sat, 14 Nov 2015 23:58:24 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Alan Mackenzie wrote:
is there any convenient way of duplicating a repo (using hard links,
and preserving config info)?

Not sure what you mean by "preserving config info", but if your current repository is in a directory named 'master', you could do something like this:

git clone master emacs-25
cd emacs-25
git remote add savannah address@hidden:/srv/git/emacs.git
git fetch savannah
git branch --track emacs-25 savannah/emacs-25
git checkout emacs-25




reply via email to

[Prev in Thread] Current Thread [Next in Thread]