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

Re: [usability bug] git branch -a does not disambiguate remote and local branches

From
LHLars Hjemli <hjemli@gmail.com>
Date
Dec 15, 2008, 19:24 UTC
Message-ID
<8c5c35580812151124h5f9b8704l492a5a9a7eb48d1a@mail.gmail.com>
In-Reply-To
<85647ef50812151015t4d5bc2b8p4ea53a0e4ad25e64@mail.gmail.com>

On Mon, Dec 15, 2008 at 19:15, Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:

Show 7 quoted lines
> After this scenario is executed, git branch -a will give the following output:
>  master
> * origin/master
>  origin/master
>
> Note that there is two origin/master entries, but it is not clear
> which is remote is and which is the local.

You can use `git branch -a --color` to see the difference (issue `git config --global color.branch true` to use --color automatically).

-- larsh

Previous: Boyd Stephen Smith Jr.Next: Björn Steinbrink
Message 5 of 6 in “[usability bug] git branch -a does not disambiguate remote and local branches”
  1. Constantine PlotnikovDec 15, 2008
  2. Johannes SchindelinDec 15, 2008
  3. Constantine PlotnikovDec 15, 2008
  4. Boyd Stephen Smith Jr.Dec 15, 2008
  5. Lars HjemliDec 15, 2008
  6. Björn SteinbrinkDec 16, 2008

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.