Default branch is stuck on a detached HEAD
See original GitHub issueDescribe the bug
My GH Desktop client (on MacOS) has gotten into a weird state where the default branch is a detached HEAD. The default branch has been set to heads/main
when it should be main
, and when I select heads/main
it says I’m on a detached HEAD. When running git status
the output is HEAD detached at refs/heads/main
.
Using git through the CLI I can checkout the main branch, but in GH Desktop I cannot see the main
branch under my list of branches unless I specifically check it out in the command line.
I’ve tried uninstalling and reinstalling the client, signing in and signing out, deleting the repo from the client then re-adding it, and setting the global git config default branch. Nothing has worked so far.
Version & OS
Version 2.9.4 (x64) on MacOS
Steps to reproduce the behavior
I do not know what happened to get into this state.
Expected behavior
The default branch of the repository should be set to main
, as it is in the GitHub repo settings
Actual behavior
The default branch of the repository is set to heads/main
which is a non-existent branch. Clicking on this “default” says I’m on a detached HEAD. Trying to branch off of this default tells me I’m currently checking out a detached HEAD
Screenshots
Logs
2021-10-13.desktop.production.log 2021-10-14.desktop.production.log 2021-10-15.desktop.production.log 2021-10-16.desktop.production.log 2021-10-17.desktop.production.log 2021-10-18.desktop.production.log 2021-10-19.desktop.production.log 2021-10-20.desktop.production.log 2021-10-21.desktop.production.log 2021-10-22.desktop.production.log 2021-10-23.desktop.production.log 2021-10-24.desktop.production.log 2021-10-25.desktop.production.log 2021-10-26.desktop.production.log
Additional context
No additional context.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Nope this was resolved
On Tue, Mar 29, 2022, 8:23 AM Steve Ward @.***> wrote:
Glad to hear things are working again.