Skip to content

HEAD -> master in git log? [Beginner] #22716

Discussion options

You must be logged in to vote
Nika-m:

HEAD is just something like ref to another ref which is applied to the latest commit in branch, am I right?

Most of the time HEAD points at the latest commit in a branch, yes, but it can also point at a plain commit, if you checkout one without creating a branch. That’s called “detached HEAD”.

Nika-m:

I achieved hiding that message by using decorate=no with git log command, could I make that default for git log?

Yes. Set the log.decorate option to no, either using git config or by editing the configuration directly.

Nika-m:

I saw in documentation git log uses decoration=short by default and there is mentioned that decorate=short hides refs, ( if I understood it correct…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants