When I call git branch -a I get this output
aleksey@aleksey:~/Downloads/NTZ/FittingRoom$ git branch -a develop * master remotes/origin/HEAD -> origin/master remotes/origin/master The develop and master branch is clear that these are my 2 local branches, but it’s clear what
remotes/origin/HEAD -> origin/master remotes/origin/master These are remote branches, but what is the difference between them and why one HEAD ... I understand that the head is the branch into which I push, but this should be the master ...
I understand that this should look like this.
aleksey@aleksey:~/Downloads/NTZ/FittingRoom$ git branch -a develop * master remotes/origin/master 2 local branches and one master remote ...
Why head ?
EDITION. Added another origin/develop branch and after executing the git checkout origin/develop command I get this output via git branch -a
aleksey@aleksey:~/Downloads/NTZ/FittingRoom$ git branch -a * (detached from origin/develop) develop master remotes/origin/HEAD -> origin/master remotes/origin/develop remotes/origin/master I understand that HEAD can only point to the branches of the remote repository ... But why then, after switching to the remote branch, does the flow of the devil head still point to the master ??
remotes/origin/HEAD -> origin/master Here according to article on Habré
the current state of unchanged files under version control is the commit that HEAD points to
Nitsche is not clear, HEAD in the end points to the branch where you are or the branch in which you made the last commit?