Re: git push on tracking branches
----- Original Message -----
Show 19 quoted lines
> From: "Jeff King" <peff@peff.net>
> To: "Stephen Bash" <bash@genarts.com>
> Cc: "Git Mailing List" <git@vger.kernel.org>
> Sent: Monday, September 27, 2010 12:05:48 PM
> Subject: Re: git push on tracking branches
> On Mon, Sep 27, 2010 at 12:00:41PM -0400, Stephen Bash wrote:
>
> > Now, your local branch sf will automatically push to and pull from
> > origin/serverfix."
>
> That has never been the case by default. Push has always defaulted to
> pushing all matching branches (so of course if you use the same name,
> it
> will end up pushing to the tracking branch). However, you can do:
>
> git config --global push.default tracking
>
> to explicitly change the default to push the current branch to its
> upstream. See the entry for "push.default" in "git help config".
Thanks for the clarification!
Stephen