git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Clone with local alternates?
@ 2006-04-18 23:48 David Woodhouse
  2006-04-18 23:56 ` Shawn Pearce
  2006-04-19  9:36 ` Eric W. Biederman
  0 siblings, 2 replies; 7+ messages in thread
From: David Woodhouse @ 2006-04-18 23:48 UTC (permalink / raw)
  To: git

Often I want to clone a remote repository but would like to use an
existing local source tree as 'alternates'. 

One way of doing this is to clone the local tree with 'git-clone -l -s',
find the latest common commit shared with the remote tree to be fetched,
revert to that with 'git-reset --head $last' and then pulling from the
remote. 

Is that _really_ the best way of doing it though? It would be better if
we just had a '--local-alternates=/foo' option to git-clone when cloning
a remote repository.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-19  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 23:48 Clone with local alternates? David Woodhouse
2006-04-18 23:56 ` Shawn Pearce
2006-04-18 23:59   ` David Woodhouse
2006-04-19  0:19   ` [PATCH] Document git-clone --reference Shawn Pearce
2006-04-19  8:39   ` Clone with local alternates? David Woodhouse
2006-04-19  9:42     ` Eric W. Biederman
2006-04-19  9:36 ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).