get github active branches in local repository code example
Example 1: compare local git branch with remote
git diff @{upstream}
Example 2: delete local and remote branch github
$ git push <remote_name> :<branch_name>
git diff @{upstream}
$ git push <remote_name> :<branch_name>