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

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

From
AGAmandeep Gautam <amandeepgautam5@gmail.com>
Date
Dec 4, 2017, 09:10 UTC
Message-ID
<CAEZzL1CfXn-XXMG-CFNpZL0B-Rq2r1JoD9gWxHOUR25z_zt+VA@mail.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

Next: SZEDER Gábor
Message 1 of 2 in “git-completion.bash: Show list of local branches instead of refs for git checkout”
  1. Amandeep GautamDec 4, 2017
  2. SZEDER GáborDec 4, 2017

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.