How to check that all the changes in a Git branch have been merge into upstream (microsoft.com)
If you try to delete a branch that contains changes that haven’t been merged to its upstream, git warns you, the branch is not fully merged.