git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Dose git-fetch need --reference option like git-clone?
@ 2007-11-11  8:09 Yin Ping
  2007-11-11  8:36 ` Junio C Hamano
  2007-11-11  8:38 ` Mike Hommey
  0 siblings, 2 replies; 5+ messages in thread
From: Yin Ping @ 2007-11-11  8:09 UTC (permalink / raw)
  To: git

I want to track remote repsotory (say remoteA) on my local repository
(say localB), so i do the following in directory localB
$ git remote add remoteA git://remoteAUrl
$ git fetch remoteA
This will fetch all objects from git://remoteAUrl if localB and
remoteA don't have common objects.

If I already have a cloned remoteA on local machine (say
/path/to/remoteACloned), I want to do following to reduce the net
traffic as git-clone:
git fetch --reference /path/to/remoteACloned remotedA

Is this reasonable? Or is there already a resolution for this case?

-- 
Ping Yin

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

end of thread, other threads:[~2007-11-11 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11  8:09 Dose git-fetch need --reference option like git-clone? Yin Ping
2007-11-11  8:36 ` Junio C Hamano
2007-11-11 11:38   ` Yin Ping
2007-11-11  8:38 ` Mike Hommey
2007-11-11  9:19   ` Junio C Hamano

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