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

Re: Do most people feel tracking branches useful?

From
Miles Bader <miles@gnu.org>
Date
Oct 29, 2008, 13:29 UTC
Message-ID
<fc339e4a0810290629g57c6cec3idcbc4b1c1d5d0159@mail.gmail.com>
In-Reply-To
<490833AD.70806@gmail.com>
On Oct 29, 2008 6:58pm, Liu Yubao <yubao.liu@gmail.com> wrote:
Show 11 quoted lines
> > Extremely useful. I usually keep local branches closely synchronized
> > with a remote "central" version, and tracking branches make the frequent
> > push/pull much more convenient.
>
> In my work flow, I don't keep changes in local branch for long time,
> I rebase it regularly and push them to central branch or discard them
> if the upstream rejects.
>
> You are right, I realize tracking branches is useful for people who keeps
> local changes for long time and track the upstream branch at the same
> time.

I don't keep local changes for a long time, I push daily. The local tracking branch and the corresponding remote branch are basically copies of each other, in different locations. I also do regularly rebasing, but against a _different_ remote branch.

There are never merge commits, because all merges done by pull are fast-forwards. If I were to push changes from multiple working directories to the central location, I'd have to be more careful about the pull-merging -- a rebase-on-pull as you suggest would be useful -- but I generally don't.

-Miles
-- 
Do not taunt Happy Fun Ball.
Previous: Liu YubaoNext: Andreas Ericsson
Message 4 of 9 in “Do most people feel tracking branches useful?”
  1. Liu YubaoOct 29, 2008
  2. Miles BaderOct 29, 2008
  3. Liu YubaoOct 29, 2008
  4. Miles BaderOct 29, 2008
  5. Andreas EricssonOct 29, 2008
  6. Liu YubaoOct 29, 2008
  7. Andreas EricssonOct 29, 2008
  8. Björn SteinbrinkOct 29, 2008
  9. Liu YubaoOct 29, 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.