Re: publishing a forked^W cloned directory with ancestry

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: martin f krafft <madduck@...>
Cc: git discussion list <git@...>, mdadm development team <pkg-mdadm-devel@...>
Date: Thursday, August 30, 2007 - 3:49 pm

On Thu, Aug 30, 2007 at 09:25:33PM +0200, martin f krafft wrote:

So in the setup you describe if they clone your repo then they'll get a
single branch called 'debian' with your work in it.  That sounds fine to
me, actually.


They can always just fetch from upstream as well if they'd like.  They
could do something like:

	git clone git://coolproject.org/cool.git
	cd cool
	git remote add debian git://git.debian.org/cool.git
	git fetch debian

Then they have a repository where git-branch -r reports something like

	origin/master
	debian/debian

Or they could do it the other way around, with "origin" pointing to you
and an "upstream" remote pointing to coolproject.org.  The naming's
obviously up to them.


Maybe the one extra "git remote add ...; git remote fetch" isn't such a
big deal?


Sure, you can do that.  I don't think it's really necessary.

My local kernel repository, for example, currently knows about five
other repos:

	$ git remote
	labiaga		# server pnfs work
	linux-nfs	# my public repo
	origin		# Linus's repo
	richterd	# a coworker's nfs work
	trond		# Trond's nfs stuff

Sure, each of those could add a "linus" branch that tracked upstream, so
I could still get some idea what Linus's tree was even if I didn't
happen to already have it.  But then I'd end up with 4 different
slightly-out-of-date pointers to the head of linus's repo in each of
those trees, which would end up being just be a bunch of cruft that I'd
have to ignore whenever I looked at them.

--b.
-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
publishing a forked^W cloned directory with ancestry, martin f krafft, (Thu Aug 30, 3:25 pm)
Re: publishing a forked^W cloned directory with ancestry, Bart Trojanowski, (Thu Aug 30, 4:27 pm)
Re: publishing a forked^W cloned directory with ancestry, J. Bruce Fields, (Thu Aug 30, 3:49 pm)
Re: publishing a forked^W cloned directory with ancestry, martin f krafft, (Tue Sep 4, 10:17 am)
Re: publishing a forked^W cloned directory with ancestry, martin f krafft, (Thu Aug 30, 3:47 pm)