Issue with default branch


Hello! I have an issue with switching the default branch. I changed it to main on GitHub website, but it didn’t change Github Desktop

Thanks for the report. Normally refreshing the repository should update the default branch. You should be able to select the repository again in the repository list to refresh it.

If that doesn’t get things working it would be helpful if you could share the output of git symbolic-ref refs/remotes/origin/HEAD from the command line.

I tried to renew it by refreshing the client. It didn’t work. I’ll try to use the command you recommended and later tell the results

Sorry for my late reply. I pasted the command you wrote. It gave me that error:


Default branch should have been ‘test’ now