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

Re: git gui: how to fetch a single branch

From
NKNeal Kreitzinger <nkreitzinger@gmail.com>
Date
Feb 24, 2012, 16:57 UTC
Message-ID
<4F47C16D.4080208@gmail.com>
In-Reply-To
<70952A932255A2489522275A628B97C31294E91C@xmb-sjc-233.amer.cisco.com>
On 2/23/2012 5:58 PM, Matt Seitz (matseitz) wrote:
Show 7 quoted lines
> How can I use "git gui" to fetch a single branch from a remote
> repository?
>
> If I select Remote->Fetch From, and then a remote repository, it appears
> to always fetch all the branches from the remote repository with no
> option to select which branch I want to fetch.
>

One way you can do it is to create a remote to that branch (see -t option of git remote manpage). Then fetching that remote only fetches that branch. Of course, this is practical if you are interested in fetching certain branches consistently, but not as practical for fetching random single branches frequently.

v/r, neal

Previous: Matt Seitz (matseitz)
Message 2 of 2 in “git gui: how to fetch a single branch”
  1. Matt Seitz (matseitz)Feb 23, 2012
  2. Neal KreitzingerFeb 24, 2012

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.