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