From: Miles Bader Date: Thu, 17 Feb 2011 07:11:37 GMT Subject: Re: set-upstream for existing branch...? Message-ID: In-Reply-To: Jay Soffian writes: > On Thu, Feb 17, 2011 at 12:19 AM, Miles Bader wrote: >> Is there a convenient, intuitive, way to set (or change) @{upstream} for >> the current branch, without doing anything else...? > > $ git branch --set-upstream > > But note that this is deceptive: what's important is the relative > positions of and on the command-line, > and they must be in that order. It doesn't (currently) matter where > you place the --set-upstream. > > I've got it on my todo list to make --set-upstream take > as its argument so that you can just say: > > $ git branch --set-upstream Thanks, the latter sounds nice, but for now the former is good for an alias... -miles -- Dictionary, n. A malevolent literary device for cramping the growth of a language and making it hard and inelastic. This dictionary, however, is a most useful work.