While using git I have two branches. One points to the origin/master. The other one to a different branch. In between there are a series of commits.
One commit after the origin/master there is this commit:
97bc89a edited to build correctly
so I do
git checkout 97bc89a
and I got
you are in 'detached HEAD'
it also says that I can create a new branch by
git switch -c <new-branch-name>
I ve never used that command before. I was going to do git checkout -b <new-branch-name>
Is it any different? How?