Github-desktop - Branch list is not getting refreshed automatically, when remote branch is deleted
See original GitHub issueDescription
What, I have noticed, branches list is not getting refreshed automatically in case if remote branch is deleted, whereas, it works in case of pull requests.
Version
Github deskop v1.2
- GitHub Desktop:
- Operating system: windows 10 OS
Steps to Reproduce
Create a remote branch
, it should be shown in Github desktop application- `Delete that branch from Remote’
Expected Behavior
Expectation is, that deleted branch should be removed from Github desktop as well
Actual Behavior
That branch remains there until deleted manually
Additional Information
Logs
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
New / Merged / Deleted branches not updating - Stack Overflow
When you git fetch you connect to the remote server, and copy the latest branches from bucket 1 to bucket 2. This brings...
Read more >How To Refresh The Remote Branch List On Github Desktop
Open this remote repository from the GitHub Desktop. Run the following commands to check the branch list of the local You have to...
Read more >Sync with a remote Git repository (fetch, pull, update) - JetBrains
If you need to get changes into the current branch from another branch instead of its remote tracked branch, use pull. When you...
Read more >Deleted remote branches are not removed from Manage ...
If you delete tasks/task1 branch from the web interface, then fetch(or pull) with "prune" flag, git is going to automatically delete origin/tasks/task1. Git...
Read more >How to fully delete remote Git branches from GitHub
After the remote branch is deleted, then delete the remote tracking branch with the git fetch origin –prune command; Optionally delete the local ......
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 Free
Top 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
@pawan-idrive @tian-heng can you confirm that the branches are checked out locally?
For branches that are never checked out locally, they should be removed on the next fetch - either background or a manual fetch (we do a
--prune
when fetching from a remote to cleanup the remote refs).Once you’ve checked out the remote branch locally, we’re don’t clean those up currently because you might still want to work on them. We’ve talked about pruned merged branches in #750 (such as those from pull requests) but that’s not currently on our roadmap.
@orvindemsy Please see this pull request for the logic behind branch pruning. Otherwise, you will have to remove the branch manually. Thanks for reaching out.