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

Re: how to push from repository with two tracking branches

From
Thomas Rast <trast@student.ethz.ch>
Date
May 13, 2010, 12:12 UTC
Message-ID
<201005131412.58675.trast@student.ethz.ch>
In-Reply-To
<20100513115747.GC10963@coredump.intra.peff.net>
Jeff King wrote:
Show 15 quoted lines
> On Thu, May 13, 2010 at 11:09:11AM +0200, Gelonida wrote:
> 
> > I have a repository with two tracking branches ('master' and 'mybranch')
> > 
> > with only one tracking branch I can do
> > git pull
> > make_local_changes
> > git commit -a
> > git push
> > 
> > with two tracking branches I will be told off if the other branch has
> > been updated meanwhile, so what I currently to do is:
> 
> How about "git push origin mybranch" to just push mybranch? You might
> also want to look at "push.default" in "git help config".

Besides, all successful branch updates go through independently of the ones that failed. So you can push without having all local branches up to date.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jeff King
Message 3 of 3 in “how to push from repository with two tracking branches”
  1. GelonidaMay 13, 2010
  2. Jeff KingMay 13, 2010
  3. Thomas RastMay 13, 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.