Reputation: 5308
The first commit line in my git log
has recently started showing:
commit 8d8cc487c2b91a2d18edbfbafe9d6700f764fe04 (HEAD -> master, origin/master, origin/HEAD)
Head -> (in blue)
master -> (in green)
origin/master and origin/HEAD (in red)
What is this telling me and why did it start showing up?
Upvotes: 2
Views: 333
Reputation: 98348
This is the output of the --decorate
option of git-log
. I think that it changed the default value, from none
to short
at some recent git
version.
When that git log --decorate
(or git config log.decorate
) is short
, then for each commit shown in a log it will show also any alternate name that refers to this commit. The color is the type of name:
HEAD
, a name that refers to other name. You will see an arrow ->
pointing to that other name.If you don't like it (but why shouldn't you?) you can disable it with git config log.decorate none
.
Upvotes: 4
Reputation: 106430
In order:
Upvotes: 4