2

When I run git branch --merged it shows:

* master
remote/master

Should it be showing remote/master in the list?

If it is down to settings, then how do I change things to stop showing this in the list?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
  • 3
    I thought the proper notation for remote branches was remotes// ... what does `git branch -a` show? – Яois Jun 04 '15 at 13:55
  • 1
    Do you have color enabled? If so, what color is it? If it is not red then it just means that you have a _local_ branch named remote/master. – Joseph K. Strauss Jun 04 '15 at 14:18

1 Answers1

0

As mentioned in the comments, remote/master would be the name of a local branch, since you can use slash in the name of a branch.

It is possible to have hierarchical branch names (branch names with slash). For example in my repository I have such branch(es). One caveat is that you can't have both branch 'foo' and branch 'foo/bar' in repository.

The remote tracking branches are in their own namespace:

 remotes/<remotename>/abranch

So it is possible you have a local branch named remote/master, which has been merged to master.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250