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: John Wiegley
Subject: Re: Git question. Is there a way of duplicating a git repository?
Date: Sat, 14 Nov 2015 10:17:33 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

>>>>> 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.

A --shared clone uses a symbolic link, so works across devices. However,
changes to the original repository affect it as well.

"git worktree add" lets you create a new working tree directly associated with
a single repository, using neither hardlinks nor symlinks; but has the added
overhead of having to learn the "git worktree" set of commands.

John



reply via email to

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