If I compare the git/refs when creating a new branch from last commit of a branch versus creating from a detached head state, the git/refs shows different behavior (names) and I like to understand why.
Lets assume the head is on master.
I need a new dev branch. After that, I made some commits to the new branch and some fixes on master.
Now I see another way how to solve the dev branch and I made a second new branch and some commits on that and on master again some fixes.
But now the refs look different! As long as I don't merge plus delete or only delete the second branch still the first two refs called after that second branch.
Why is this a good behavior, cause I cannot easily see that the first refs usually belong to master? Only hashes and parent hashes help with identification, but are a slow method. THX.
EDIT: The information shown here is provided from git log
command.