Re: git pull and merging.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Wednesday, December 6, 2006 - 2:26 am

Hi,

On Wed, 6 Dec 2006, Aneesh Kumar wrote:


You can have the same effect as what Junio wrote with the config:

$ git repo-config remote.origin.url git://git.kernel.org/pub/scm/git/git.git
$ git repo-config remote.origin.fetch \
	refs/heads/master:refs/remotes/origin/master
$ git repo-config remote.origin.fetch \
	refs/heads/next:refs/remotes/origin/next ^$
$ git repo-config remote.origin.fetch \
	+refs/heads/pu:refs/remotes/origin/pu ^$

But if you clone with recent git, that will already be set up for you 
(well, except that the "+" is missing in front of the "pu" thing, which 
says that it is okay if that particular ref is not fast-forwarding).


No. This tells git which _default_ branch to merge with. I.e.

$ git repo-config branch.master.remote origin
$ git repo-config branch.master.merge next

means that if your current branch is "master", a "git pull" _without_ 
parameters will default to the branch "next" of the remote "origin" you 
just set up like above.

Hth,
Dscho

-
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:
git pull and merging., Aneesh Kumar, (Tue Dec 5, 9:51 pm)
Re: git pull and merging., Junio C Hamano, (Tue Dec 5, 10:02 pm)
Re: git pull and merging., Aneesh Kumar, (Tue Dec 5, 10:21 pm)
Re: git pull and merging., Johannes Schindelin, (Wed Dec 6, 2:26 am)
Re: git pull and merging., Aneesh Kumar, (Wed Dec 6, 3:05 am)
Re: git pull and merging., Josef Weidendorfer, (Wed Dec 6, 9:44 am)
Re: git pull and merging., Aneesh Kumar K.V, (Wed Dec 6, 11:46 pm)
Re: git pull and merging., Josef Weidendorfer, (Thu Dec 7, 4:27 am)
Re: git pull and merging., Junio C Hamano, (Thu Dec 7, 12:06 pm)
Re: git pull and merging., Josef Weidendorfer, (Thu Dec 7, 3:54 pm)
Re: git pull and merging., Junio C Hamano, (Thu Dec 7, 4:06 pm)
Re: git pull and merging., sbejar, (Thu Dec 7, 6:56 pm)
Re: git pull and merging., sbejar, (Thu Dec 7, 7:04 pm)
Re: git pull and merging., Junio C Hamano, (Fri Dec 8, 12:07 am)
Re: git pull and merging., Josef Weidendorfer, (Fri Dec 8, 10:23 am)
[PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 12:12 pm)
Re: git pull and merging., sbejar, (Fri Dec 8, 1:09 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 2:39 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 3:01 pm)
Re: [PATCH] Add branch.*.localmerge and documentation update, Josef Weidendorfer, (Fri Dec 8, 4:17 pm)
[PATCH] Add branch.*.merge warning and documentation update, Josef Weidendorfer, (Fri Dec 8, 6:28 pm)