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: Ken Brown
Subject: Re: Git question. Is there a way of duplicating a git repository?
Date: Sat, 14 Nov 2015 16:02:27 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/14/2015 6:20 AM, Alan Mackenzie wrote:
> 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.

You can fix that by issuing the following command in the new repo:

  git remote set-url origin <userid>@git.sv.gnu.org:/srv/git/emacs.git master

After doing that, you'll to do 'git pull' in order to bring in the remote 
branches, and then you can do 'git checkout emacs-25'.

Ken



reply via email to

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