cat .git/FETCH_HEAD points to branch branch_a
cat .git/HEAD points to ref: refs/heads/branch_temp
When i perform a git push it prompts me the following:
git push
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:branch_a
To push to the branch of the same name on the remote, use
git push origin HEAD
I have used git push origin HEAD for now.
I would like to set the HEAD and FETCH_HEAD to point to branch_temp -> HEAD Secondly, does this always occur when you copy/checkout a branch?