Suppose one is on branch "master" and that HEAD is at the tip of the branch (say, on commit C
). Suppose one then executes git reset --hard HEAD^3
back to commit A
. Then HEAD now refers to A
.
Question: Does "master" also refer to A
, or is it still pointing at C
? Put differently: in this context, does HEAD always refer to what the branch "master" does (i.e., assuming that our repository has only one branch named "master")?