How can I list any local branches that appear (as per .git/config) to be tracking remote branches that no longer exist? Remote branches are on GitHub in this ca
.git/config
To list your local branches which track deleted remote branches you can use git remote prune --dry-run
git remote prune --dry-run
For example (assuming your remote repository is named origin):
origin
git fetch git remote prune origin --dry-run
You can remove the --dry-run option to delete the branches from your local repository
--dry-run