Problem
You would like to remove your local branches that were used to track remote branches that no longer exists (deleted after merge).
1 2 3 |
git branch -a branch_to_delete remotes/origin/branch_to_delete |
Solution
To delete your local branch you could use the following:
1 |
git branch -D branch_to_delete |
And to to delete the remote tracking branching you could use the following:
1 |
git branch -rd origin/branch_to_delete |