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

Re: Do most people feel tracking branches useful?

From
LYLiu Yubao <yubao.liu@gmail.com>
Date
Oct 29, 2008, 09:58 UTC
Message-ID
<490833AD.70806@gmail.com>
In-Reply-To
<buoprlj4vle.fsf@dhapc248.dev.necel.com>
Miles Bader wrote:
Show 7 quoted lines
> Liu Yubao <yubao.liu@gmail.com> writes:
>> do most people feel tracking branches useful?
> 
> 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.

But I guess an auto-rebasing policy is more sensible than auto-merging policy because I won't get many useless "Merge branch 'xxx' of ..." messages in the history.

Another problem about tracking branch is `git pull` won't merge tracking branch with remote branch when the current branch isn't tracking branch, it warns me "You asked me to pull without telling me which branch you ....". It's not convenient to checkout tracking branch and execute `git pull` then switch back to my working branch.

Previous: Miles BaderNext: Miles Bader
Message 3 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.