git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git push on tracking branches

From
SBStephen Bash <bash@genarts.com>
Date
Sep 27, 2010, 16:14 UTC
Message-ID
<29138507.371458.1285604041100.JavaMail.root@mail.hq.genarts.com>
In-Reply-To
<20100927160548.GA10256@sigill.intra.peff.net>
----- 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
Previous: Jeff KingNext: Nick
Message 3 of 5 in “git push on tracking branches”
  1. Stephen BashSep 27, 2010
  2. Jeff KingSep 27, 2010
  3. Stephen BashSep 27, 2010
  4. NickSep 27, 2010
  5. Jeff KingSep 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.