I deleted a branch on Github after merging my changes, however the branch still appears in Github Desktop.
The below are the steps I took:
The branch is no longer in Github but it is still available from the branch drop down menu in Github Desktop.
How do I fix this issue?
Since July 2019, GitHub Desktop should propose a pruning option, which allows to removes unused branches from your local repository after they’ve been merged and deleted on GitHub.com to help keep your branch list relevant and uncluttered.
That solves issue 750 with PR 6544
This PR adds a feature that will auto-prune branches based on these conditions:
- The branch is deleted on GitHub.com and
- merged locally into the default branch in Desktop and
- has no commits ahead of the default branch
If the local branch is not pruned automatically... you need to go to the command-line:
git fetch
git remote prune origin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With