threads / discuss / 29715

git gui: how to fetch a single branch

Subject: git gui: how to fetch a single branch

## tl;dr

2 messages between Feb 23, 2012 and Feb 24, 2012.

replies: 1people: 2as markdown or json

Matt Seitz (matseitz)· Feb 23, 2012, 23:58 UTC · lore

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.

Neal Kreitzinger· Feb 24, 2012, 16:57 UTC · re: Matt Seitz (matseitz) · lore

Re: git gui: how to fetch a single branch

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

← back to recent threads