HEAD -> master in git log? [Beginner] #22716
-
Question: If anyone wants to know what the hell HEAD tag is and why does it point to the master just look this up: https://people.gnome.org/~federico/news-2008-11.html any comments would be appreciated I’m just reeal beginner at the moment |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nika-m:
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:
Yes. Set the
Nika-m:
Because it doesn’t hide refs, it hides the In general I recommend you take a look at the Git Book. 😉 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for answers |
Beta Was this translation helpful? Give feedback.
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”.
Yes. Set the
log.decorate
option tono
, either usinggit config
or by editing the configuration directly.