question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github-desktop - Branch list is not getting refreshed automatically, when remote branch is deleted

See original GitHub issue

Description

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

  1. Create a remote branch , it should be shown in Github desktop application
  2. `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:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, May 31, 2018

@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.

0reactions
tierninhocommented, Oct 29, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found