git branch

Git - How to Merge detached HEAD back to origin/master

# References
https://cmatskas.com/merge-detached-head-back-to-originmaster-git/
git help branch

# Use Cases
You made a checkout from remote repo
You create a new brach from a previous commit
    git  -b new-branch-name c2744f95d

# Solution
git checkout –b temp #makes a new branch from current detached HEAD