Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: branch --set-upstream considered harmful

From: Tay Ray Chuan <hidden>
Date: 2016-06-15 22:48:55

Hi,

On Mon, Jun 7, 2010 at 3:21 AM, Jay Soffian [off-list ref] wrote:
Say I have an existing branch and it doesn't have a tracking config.
(My local users often just do "checkout -b topic" instead of "checkout
-b topic origin/master".)

I would naively expect this to work, while on that branch:

 (topic)$ git branch --set-upstream origin/master
Hmm, I can see where the confusion is coming from - you're treating
git-branch as a "branch modifier", when it really is a "branch
creator" - unless you use -f, of course.
[snip]
So here's how I'm thinking about fixing it, but maybe I'm just making
it even more confusing. What say you:

 (topic)$ git branch --set-upstream=origin/master
 Branch topic set up to track remote branch master from origin.
I was under the impression that long-style options took "=".

-- 
Cheers,
Ray Chuan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help