Default Branch does not Update
See original GitHub issueDescription
Upon updating the default branch in my private GitHub repo, Desktop does not update. The old branch is still marked as default and used by default for new branches.
Version
- GitHub Desktop: 1.4.0
- Operating system: macOS High Sierra V 10.13.6
Steps to Reproduce
- Have a private GitHub repo with a default branch
dev
- Create another branch named
develop
- Change the settings of the branch such that
develop
is the default. - Go back to GitHub Desktop, restart, do whatever, and observe that the default branch remains
dev
Expected Behavior
On the next fetch or at least upon restarting the app, the default branch would update accordingly to develop
Actual Behavior
The default branch remains the previous default branch.
Additional Information
Logs
It happened one of these days based off history. I don’t see anything relating to default
, but maybe they’ll be useful.
2018-09-13.desktop.production.log 2018-09-14.desktop.production.log
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:26 (6 by maintainers)
Top Results From Across the Web
Github Desktop won't update Default Branch to main #13669
Change default to main in the repository and delete master · In every conceivable place change default branch to main · Rub these...
Read more >Renaming the default branch - Tidyverse
If you don't want to use usethis, you can rename the default branch from a web browser. On GitHub, in your repo, go...
Read more >Unable to change Default branch of a repository - GitLab.org
The default branch on one of our repos is permanently stuck on master . Attempting to change it to a different branch yields...
Read more >Git remote default branch won't change - Stack Overflow
I have forked this repository but my problem is the first branch I pushed to the origin wasn't named master but let's say...
Read more >Mirror does not update when initial default branch is an ... - Jira
Before the first push to a newly created repository, rename the local default branch from "master" to an arbitrary name i.e "test". When...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Timawg Click the Current Repository dropdown in the top-left corner and select the already selected repo to reload it, which will re-sync the default branch.
if anyone still facing this problem:
git symbolic-ref refs/remotes/origin/HEAD