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

Re: Getting new branches from remote repo.

From
ALAlexander Litvinov <litvinov2004@gmail.com>
Date
Nov 13, 2006, 05:29 UTC
Message-ID
<6e1787fe0611122129l211f7bcaued9f4981225a241b@mail.gmail.com>
In-Reply-To
<7v8xigar36.fsf@assigned-by-dhcp.cox.net>
> After finding out $that_new_branch's name, add either
>
>         Pull: refs/heads/$that_new_branch:refs/heads/$that_new_branch
> You would still see them if you say "ls-remote" without --heads.
Thanks for help, these commands solve my trouble:
1. Get remote branches by 'git ls-remote origin refs/remotes/*'
2. Fetch needed branch by adding: 'Pull:
refs/remotes/origin/BRANCH:refs/heads/BRANCH' into .git/remotes/origin
Is there any way to automaticly edit .git/remotes/origin before
Previous: Junio C HamanoNext: Karl Hasselström
Message 3 of 9 in “Getting new branches from remote repo.”
  1. Alexander LitvinovNov 13, 2006
  2. Junio C HamanoNov 13, 2006
  3. Alexander LitvinovNov 13, 2006
  4. Karl HasselströmNov 13, 2006
  5. Matthias HopfNov 13, 2006
  6. Shawn PearceNov 13, 2006
  7. Karl HasselströmNov 13, 2006
  8. Junio C HamanoNov 13, 2006
  9. Jakub NarebskiNov 13, 2006

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.