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

Re: creating tracking branches with git gui

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 8, 2008, 23:41 UTC
Message-ID
<20080508234114.GZ29038@spearce.org>
In-Reply-To
<2e24e5b90805072006j311b276cpe0a0d0eea9fa13a0@mail.gmail.com>
Sitaram Chamarty <sitaramc@gmail.com> wrote:
Show 5 quoted lines
> 
> Over on another thread I found a config variable called
> gui.matchtrackingbranch, but setting that to true only saved me a
> mouse click -- it didn't really create the tracking, as seen by "git
> remote show origin".

Yea, I think that option actually predates the --track thing that git-branch does these days. Its designed to save a mouse click if you are working in a corporate centralized repository model and need to switch branches multiple times per day, always grabbing the latest from the centralized repository when possible.

Show 9 quoted lines
> On Wed, May 7, 2008 at 1:34 PM, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> >
> >  Using git gui to create tracking branches only creates the local
> >  branch, but does not establish tracking.  Using the command "git
> >  branch newbr origin/newbr" works as expected of course.
> >
> >  I clicked on "Branch", then "Create", chose the "Match Tracking Branch
> >  Name" radio button, chose the appropriate branch (origin/newbr) in the
> >  list below, then finally hit Create at the bottom right.
Right.

I don't use the --track feature (branch.$name.remote, branch.$name.merge) in my own work, so I have never had the desire or need to make sure that git-gui sets this up for you.

I'll try to work up a patch this evening.
-- 
Shawn.
Previous: Sitaram ChamartyNext: Sitaram Chamarty
Message 3 of 4 in “creating tracking branches with git gui”
  1. Sitaram ChamartyMay 7, 2008
  2. Sitaram ChamartyMay 8, 2008
  3. Shawn O. PearceMay 8, 2008
  4. Sitaram ChamartyMay 9, 2008

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.