What's happening with my local Git branches? Here is the sequence of commands I ran:
$ git fetch --all
$ git branch
* feature/myfeature1
master
branch-dev
$ git branch -a
* feature/myfeature1
master
branch-dev
remotes/origin/bugfix/bug-on-user
remotes/origin/feature/myfeature2
$ git checkout origin/bugfix/bug-on-user
M com.soc.data/.settings/org.eclipse.jdt.core.prefs
M com.soc.data/META-INF/MANIFEST.MF
Note: checking out 'origin/bugfix/bug-on-user'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at d467d95... ...
$git branch
* (detached from origin/bugfix/bug-on-user)
feature/myfeature1
master
branch-dev
Why is my branch detached? What did I do wrong?