Após o check -out fatal: você não está atualmente em uma filial.

git branch temp-branch
git checkout master
git merge temp-branch
git push origin master
Tommy