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

Re: New way of tracking remote branches -- question

From
Steven Grimm <koreth@midwinter.com>
Date
Jan 6, 2007, 02:11 UTC
Message-ID
<459F056D.8010705@midwinter.com>
In-Reply-To
<7v8xghariv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> I think other poeple on the list (especially the ones who wanted
> separate remote layout) prefer not to have the automatic fork of
> all remote branches.
>   

I'm a big fan of separate remote, and while I don't necessarily think automatic fork should be the default behavior, it might be nice to have an option for it, including setting up the appropriate config entries so push/pull do the expected things.

If that doesn't sound palatable, maybe an option to specify which remote branch to check out by default -- that way you can tell someone to run a particular git-clone command to get a local copy of a specific branch of yours. We just had a need for that here today, in fact. The current behavior is pretty screwy when you want to tell someone to clone your development environment to look at what you're doing; they don't have a good way of knowing which of your branches they're going to end up with, since you might be working in any of them when they happen to run git-clone. You end up having to say, "Run git-clone, then run git-branch, and if you don't see '* xyz', then run 'git-checkout -b xyz origin/xyz'."

-Steve
Previous: Junio C HamanoNext: Theodore Tso
Message 8 of 13 in “New way of tracking remote branches -- question”
  1. Luben TuikovJan 5, 2007
  2. Junio C HamanoJan 5, 2007
  3. Junio C HamanoJan 5, 2007
  4. Luben TuikovJan 6, 2007
  5. Luben TuikovJan 6, 2007
  6. Junio C HamanoJan 5, 2007
  7. Junio C HamanoJan 6, 2007
  8. Steven GrimmJan 6, 2007
  9. Theodore TsoJan 6, 2007
  10. Luben TuikovJan 9, 2007
  11. Junio C HamanoJan 9, 2007
  12. Luben TuikovJan 9, 2007
  13. Martin LanghoffJan 9, 2007

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.