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

Re: [PATCH] checkout: add remoteBranchTemplate config for DWIM branch names

From
Ppasteley <ceasebeing@gmail.com>
Date
Dec 23, 2025, 02:39 UTC
Message-ID
<1959d147-1a2d-40b4-9ca6-b85a461d2568@gmail.com>
In-Reply-To
<xmqqy0muqaut.fsf@gitster.g>
On 23/12/2025 1:51 AM, Junio C Hamano wrote:
Show 15 quoted lines
> pasteley <ceasebeing@gmail.com> writes:
> 
>> 1. Server-side policies/hooks that require a namespace on the remote
>>      (e.g. `team/*`, `users/<id>/*`, `release/*`).
>> 2. Hosting / mirroring setups where remote branches live under a fixed
>>      prefix for organizational or access-control reasons.
>> 3. Migrations where the remote branch layout is constrained by the
>>      target system, while local developer workflows assume short names.
>>
>> In these scenarios developers do not create the problem, they inherit it.
> 
> Nobody stops you from interacting with projects like the above, and
> locally name branches you store your work in users/pasteley/topic-1
> instead of topic-1, no?
> 

I would say: forced to handle it this way. And guessing I’m not the only one struggling. Meanwhile, there’s a simple quality-of-life improvement that would help avoid all the hacky custom aliases and shell workarounds for what should be a relatively straightforward remote refspec format adjustment. I’d really like to see this discussion move toward practical, constructive steps, though I’m not sure what it would take to get there.

Previous: Junio C Hamano
Message 5 of 5 in “checkout: add remoteBranchTemplate config for DWIM branch names”
  1. checkout: add remoteBranchTemplate config for DWIM branch namesPasteley Absurda via GitGitGadget, Dec 21, 2025
  2. Junio C HamanoDec 22, 2025
  3. pasteleyDec 22, 2025
  4. Junio C HamanoDec 23, 2025
  5. pasteleyDec 23, 2025

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.