tags:

views:

98

answers:

1

I put original git-completion.bash (from git tarball) and source it from my ~/bash_profile.

When using git branch is shows only HEAD, e.g.:

piotr@PiotrMBP ~/Projects/X  (master) 
$ git co HEAD

but I have:

$ git br -a
  NSXMLDocument
* master
  origin/HEAD
  origin/NSXMLDocument
  origin/master

I haven't modified git-completion.bash in any way, and it works as you can see, while I have branch name in my PS, like in line: piotr@PiotrMBP ~/Projects/X (master)

Where should I look for any clues on why branches are not displayed as expected?

+1  A: 

As mentioned in the comment, the version of Git matters here.

Git1.6.3.1 did enhance branch display for instance (May 2009)

VonC