Clone with local alternates?

From: David Woodhouse <dwmw2@infradead.org>
Date: 2006-04-19 09:48:51
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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Apr 19 09:49:17 2006

This archive was generated by hypermail 2.1.8 : 2006-04-19 09:49:41 EST