From: Rudolf Polzer Date: Thu, 14 Jan 2010 07:01:08 GMT Subject: Re: [PATCH] git push --track Message-ID: <20100114070108.GB1528@rm.endoftheinternet.org> In-Reply-To: <871vht7cs2.fsf@catnip.gol.com> On Thu, Jan 14, 2010 at 09:25:49AM +0900, Miles Bader wrote: > "Rudolf Polzer" writes: > > I'd like a feature to automatically "transform" a non-tracking local > > branch into a tracking branch on push. A patch to do that is attached. > > Yay!! > > I've wanted this for a long time, but discussions about it always seem > to end up petering out... > > > git branch mybranch > > git checkout mybranch > > ... > > git push --track origin mybranch:mybranch > > Does it default to the current branch so you can just say "git push --track origin"? It does the very same decisions as push. Basically, it is "whatever got pushed, mark as tracking". Best regards, Rudolf