Git - How to merge detached HEAD to master
https://stackoverflow.com/questions/7124486/what-to-do-with-commit-made-in-a-detached-head
Create a branch where you are, then switch to master and merge it:
git branch my-temporary-work
git checkout master
git merge my-temporary-work