enter image description here

I have done a branch checkout on master but magit rectangle is on origin/master and not only on master.

1 Answer 1


Quoting the manual:

Magit displays references in logs a bit differently from how Git does it.

Local branches are blue and remote branches are green. Of course that depends on the used theme, as do the colors used for other types of references. The current branch has a box around it, as do remote branches that are their respective remote's HEAD branch.

If a local branch and its push-target point at the same commit, then their names are combined to preserve space and to make that relationship visible. For example:


instead of

feature origin/feature
[blue-] [green-------]
  • Thanks for the reply! But I am not clear why on all projects the rectangle is only on [master] while here on [origin / master] (I moved the repo from gitlab to github, maybe it matters) Commented Mar 31, 2021 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.