# git-completion.bash: Show list of local branches instead of refs for git checkout

2 messages from 2017-12-04 to 2017-12-04. Participants: Amandeep Gautam, SZEDER Gábor.
Thread: https://gitlist.dev/t/47370

## Amandeep Gautam, 2017-12-04 09:10

Subject: git-completion.bash: Show list of local branches instead of refs for git checkout
Message-ID: <CAEZzL1CfXn-XXMG-CFNpZL0B-Rq2r1JoD9gWxHOUR25z_zt+VA@mail.gmail.com>
URL: https://gitlist.dev/e/CAEZzL1CfXn-XXMG-CFNpZL0B-Rq2r1JoD9gWxHOUR25z_zt%2BVA%40mail.gmail.com

```
Hello,
    I am using git-completion.bash and when I try to checkout a branch
by typing git checkout on the prompt, I get the following:

FETCH_HEAD FETCH ORIG_FETCH

Will it not be more useful if the list of local branches is populated?
If it seems like a good idea I will be willing to submit a patch.

Regards,
Aman

```

## SZEDER Gábor, 2017-12-04 09:29

Subject: Re: git-completion.bash: Show list of local branches instead of refs for git checkout
Message-ID: <20171204092946.6763-1-szeder.dev@gmail.com>
URL: https://gitlist.dev/e/20171204092946.6763-1-szeder.dev%40gmail.com
In-Reply-To: <CAEZzL1CfXn-XXMG-CFNpZL0B-Rq2r1JoD9gWxHOUR25z_zt+VA@mail.gmail.com>

```
Hi,

>     I am using git-completion.bash and when I try to checkout a branch
> by typing git checkout on the prompt, I get the following:
> 
> FETCH_HEAD FETCH ORIG_FETCH

What is "ORIG_FETCH"?  This string was never present in Git's source
code.

> Will it not be more useful if the list of local branches is populated?

'git checkout <TAB>' should already list branches, and it seems to
work just fine.


Gábor


```
