# git gui: how to fetch a single branch

2 messages from 2012-02-23 to 2012-02-24. Participants: Matt Seitz (matseitz), Neal Kreitzinger.
Thread: https://gitlist.dev/t/29715

## Matt Seitz (matseitz), 2012-02-23 23:58

Subject: git gui: how to fetch a single branch
Message-ID: <70952A932255A2489522275A628B97C31294E91C@xmb-sjc-233.amer.cisco.com>
URL: https://gitlist.dev/e/70952A932255A2489522275A628B97C31294E91C%40xmb-sjc-233.amer.cisco.com

```
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, 2012-02-24 16:57

Subject: Re: git gui: how to fetch a single branch
Message-ID: <4F47C16D.4080208@gmail.com>
URL: https://gitlist.dev/e/4F47C16D.4080208%40gmail.com
In-Reply-To: <70952A932255A2489522275A628B97C31294E91C@xmb-sjc-233.amer.cisco.com>

```
On 2/23/2012 5:58 PM, Matt Seitz (matseitz) wrote:
> 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

```
