In this post, we explain that HEAD is a pointer. But I’m confused, I checked my repo and I have ‘remotes/origin/master’ and ‘remotes/origin/HEAD’. Can we just point remote head to somewhere to that a user cloning a repo is already on another branch?
Share
See this answer. It points you to this article and this other answer. For a GitHub repository, you can also follow this answer.
In short, if you have access to the remote repository, you can do this on the remote repository itself:
Or on GitHub, do so through the admin page.