1

I'm just getting started with git. If I do a 'git show-branch', it shows me branch divergence graphically. What do the exclamation marks above the --- separator mean vs the asterisk?

XXXXX@XXXXX gittest % git show-branch
* [Branch1] Adding third file to Branch1
 ! [feature/new-feature] Adding second file to master branch
  ! [master] Adding second file to master branch
---
*   [Branch1] Adding third file to Branch1
*   [Branch1^] Branch 1 file two
*   [Branch1~2] Branch1 first commit
 ++ [feature/new-feature] Adding second file to master branch
*++ [Branch1~3] Initial commit
XXXXX@XXXXX gittest %
ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97
slantalpha
  • 515
  • 1
  • 6
  • 18

1 Answers1

4

in the official doc here

Given N , the first N lines are the one-line description from their commit message. The branch head that is pointed at by $GIT_DIR/HEAD is prefixed with an asterisk * character while other heads are prefixed with a ! character.

ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97