If you are on a detached head and you want to push to your remote branch otherwise you can create a new branch and push to it ( it will be created automatically )
Git detached head
Most of the time, HEAD points to a branch name. When you add a new commit, your branch reference is updated to point to it, but HEAD remains the same. When you change branches, HEAD is updated to point to the branch you’ve switched to. All of that means that, in these scenarios, HEAD is …