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

Re: remote branches, and branch names in general

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 3, 2009, 00:38 UTC
Message-ID
<m3vdqrtp84.fsf@localhost.localdomain>
In-Reply-To
<450196A1AAAE4B42A00A8B27A59278E709F07398@EXCHANGE.trad.tradestation.com>
"John Dlugosz" <JDlugosz@TradeStation.com> writes:
> I see the remote branches with names of the form remotes/pub/name where
> pub is the nickname of the place I pull from.  To specify such branches,
> must I always spell it out with the leading "remotes/", or can that be
> shorted or implied somehow?  

You usually can omit "remotes/" prefix, and just use "<remote>/<branch>" (or even "<remote>" for "<remote>/HEAD"). You need it only if there is need for disambiguation.

Show 5 quoted lines
> 
> Meanwhile, I see that branch names can be hierarchical, as I found out
> when I accidently created a branch called "pub/xxx".  So I'm wondering
> about the usefulness of using that for organizing topic branches based
> on assigned tasks organization and the person owning that branch.

Junio uses branches like 'fc/parseopt-config' (initials + feature) in git development...

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: John DlugoszNext: Jeff King
Message 2 of 9 in “remote branches, and branch names in general”
  1. John DlugoszMar 2, 2009
  2. Jakub NarebskiMar 3, 2009
  3. Jeff KingMar 3, 2009
  4. Markus HeidelbergMar 3, 2009
  5. Jeff KingMar 3, 2009
  6. John DlugoszMar 3, 2009
  7. Jeff KingMar 3, 2009
  8. Jay SoffianMar 3, 2009
  9. Jeff KingMar 4, 2009

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.