get rid of rempte branches code example
Example 1: git remove upstream branch
$ git branch --unset-upstream
Example 2: delete local and remote branch github
git branch -d branch_namegit branch -D branch_name
$ git branch --unset-upstream
git branch -d branch_namegit branch -D branch_name